Base virtual class for wrapping class that performs PPCKO computations. Which child class is constructed is selected run-time through virtual polymorphism. More...
#include <PPC_KO_wrapper.hpp>
Public Member Functions | |
| template<typename STOR_OBJ> | |
| PPC_KO_wrapper (STOR_OBJ &&data, int number_threads) | |
| Constructor. | |
| virtual | ~PPC_KO_wrapper ()=default |
| Virtual destructor. | |
| virtual void | call_ko ()=0 |
| Virtual method to call the correct PPCKO version at runtime. | |
| KO_Traits::StoringMatrix | data () const |
| Getter for the data matrix. | |
| results_t< valid_err_ret > | results () const |
| Getter for the results. | |
| int | number_threads () const |
| Getter for the number of threads for OMP. | |
| results_t< valid_err_ret > & | results () |
| Setter for the results. | |
Base virtual class for wrapping class that performs PPCKO computations. Which child class is constructed is selected run-time through virtual polymorphism.
| solver | if algorithm solved inverting the regularized covariance or avoiding it through gep (not possible if retaining the number of PPCs with explanatory power criterion) |
| k_imp | if k is imposed or has to be found through explanatory power criterion |
| valid_err_ret | if validation error are stored |
| cv_strat | strategy for splitting training/validation sets |
| err_eval | how to evaluate the loss between prediction on validation set and validation set |
It is a base class. Polymorphism is known at run-time through virtual polymorphism
|
inline |
Constructor.
| data | matrix storing fts |
| number_threads | number of threads for OMP |
Universal constructor: move semantic used to optimazing handling big size objects
|
pure virtual |
Virtual method to call the correct PPCKO version at runtime.
Implemented in PPC_KO_wrapper_cv_alpha< solver, k_imp, valid_err_ret, cv_strat, cv_err_eval >, PPC_KO_wrapper_cv_alpha_k< solver, k_imp, valid_err_ret, cv_strat, cv_err_eval >, PPC_KO_wrapper_cv_k< solver, k_imp, valid_err_ret, cv_strat, cv_err_eval >, and PPC_KO_wrapper_no_cv< solver, k_imp, valid_err_ret, cv_strat, cv_err_eval >.
|
inline |
Getter for the data matrix.
|
inline |
Getter for the number of threads for OMP.
|
inline |
Setter for the results.
|
inline |
Getter for the results.