|
libena 0.4.18-dev.9021
QE C++ library
|
Parameters for generalized_means_rotation().
More...
#include <generalized_rotation.hpp>
Public Attributes | |
X axis (required) | |
| arma::mat | x_model_matrix |
| n×p model matrix for the X axis. | |
| arma::vec | x_target |
| n×1 target variable (raw float or 0-based integer codes). | |
| arma::uvec | x1_cols |
0-based target column indices in x_model_matrix. | |
| bool | x_categorical = false |
true if the X target is categorical. | |
| arma::uword | x_n_groups = 0 |
Number of distinct groups (used when x_categorical is true). | |
| arma::uvec | x_subset |
| Optional row subset (0-based); empty means use all rows. | |
Y axis (optional) | |
When | |
| bool | has_y = false |
true if a Y-axis GMR target is provided. | |
| arma::mat | y_model_matrix |
| n×p model matrix for the Y axis. | |
| arma::vec | y_target |
| n×1 target variable for the Y axis. | |
| arma::uvec | y1_cols |
0-based target column indices in y_model_matrix. | |
| bool | y_categorical = false |
true if the Y target is categorical. | |
| arma::uword | y_n_groups = 0 |
Lasso tuning | |
The Y axis always uses all rows (no subset parameter). | |
| int | n_lambda = 50 |
| Length of the lambda path. | |
| int | k_folds = 5 |
| Number of cross-validation folds. | |
| double | lasso_eps = 0.01 |
| lambda_min = lasso_eps * lambda_max. | |
Parameters for generalized_means_rotation().
Groups all inputs needed to specify both the X and Y rotation axes, along with Lasso tuning knobs. The Y axis is optional: when has_y is false the second axis is taken from the leading SVD of the x-deflated space.
| bool qe::GeneralizedRotationParams::has_y = false |
true if a Y-axis GMR target is provided.
| int qe::GeneralizedRotationParams::k_folds = 5 |
Number of cross-validation folds.
| double qe::GeneralizedRotationParams::lasso_eps = 0.01 |
lambda_min = lasso_eps * lambda_max.
| int qe::GeneralizedRotationParams::n_lambda = 50 |
Length of the lambda path.
| arma::uvec qe::GeneralizedRotationParams::x1_cols |
0-based target column indices in x_model_matrix.
| bool qe::GeneralizedRotationParams::x_categorical = false |
true if the X target is categorical.
| arma::mat qe::GeneralizedRotationParams::x_model_matrix |
n×p model matrix for the X axis.
| arma::uword qe::GeneralizedRotationParams::x_n_groups = 0 |
Number of distinct groups (used when x_categorical is true).
| arma::uvec qe::GeneralizedRotationParams::x_subset |
Optional row subset (0-based); empty means use all rows.
| arma::vec qe::GeneralizedRotationParams::x_target |
n×1 target variable (raw float or 0-based integer codes).
| arma::uvec qe::GeneralizedRotationParams::y1_cols |
0-based target column indices in y_model_matrix.
| bool qe::GeneralizedRotationParams::y_categorical = false |
true if the Y target is categorical.
| arma::mat qe::GeneralizedRotationParams::y_model_matrix |
n×p model matrix for the Y axis.
| arma::uword qe::GeneralizedRotationParams::y_n_groups = 0 |
Number of distinct groups for the Y axis.
| arma::vec qe::GeneralizedRotationParams::y_target |
n×1 target variable for the Y axis.