Result of a variable selection step.
More...
#include <VariableSelection.hpp>
|
| size_t | original_size = 0 |
| | Number of columns in the original (unreduced) matrix.
|
| |
| std::vector< int > | selected_cols |
| | Indices of the selected columns in the original matrix.
|
| |
Result of a variable selection step.
Records which columns were selected and allows expanding a reduced-dimension projector back to the original feature space.
◆ Result() [1/2]
| ppforest2::vars::VariableSelection::Result::Result |
( |
| ) |
|
|
default |
◆ Result() [2/2]
| ppforest2::vars::VariableSelection::Result::Result |
( |
std::vector< int > const & | selected_cols, |
|
|
size_t | original_size ) |
|
inline |
◆ expand()
Expand a reduced-dimension projector to the original space.
Places each element of reduced_vector at the position of the corresponding selected column; all other positions are zero.
- Parameters
-
| reduced_vector | Projector in the reduced space (q). |
- Returns
- Projector in the original space (p), zero-padded.
◆ original_size
| size_t ppforest2::vars::VariableSelection::Result::original_size = 0 |
Number of columns in the original (unreduced) matrix.
◆ selected_cols
| std::vector<int> ppforest2::vars::VariableSelection::Result::selected_cols |
Indices of the selected columns in the original matrix.
The documentation for this struct was generated from the following file: