libena 0.4.18-dev.9021
QE C++ library
Loading...
Searching...
No Matches
qe::GeneralizedRotationParams Struct Reference

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 has_y is false, the Y axis is taken from the leading SVD of the x-deflated space.

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.
 

Detailed Description

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.

Member Data Documentation

◆ has_y

bool qe::GeneralizedRotationParams::has_y = false

true if a Y-axis GMR target is provided.

◆ k_folds

int qe::GeneralizedRotationParams::k_folds = 5

Number of cross-validation folds.

◆ lasso_eps

double qe::GeneralizedRotationParams::lasso_eps = 0.01

lambda_min = lasso_eps * lambda_max.

◆ n_lambda

int qe::GeneralizedRotationParams::n_lambda = 50

Length of the lambda path.

◆ x1_cols

arma::uvec qe::GeneralizedRotationParams::x1_cols

0-based target column indices in x_model_matrix.

◆ x_categorical

bool qe::GeneralizedRotationParams::x_categorical = false

true if the X target is categorical.

◆ x_model_matrix

arma::mat qe::GeneralizedRotationParams::x_model_matrix

n×p model matrix for the X axis.

◆ x_n_groups

arma::uword qe::GeneralizedRotationParams::x_n_groups = 0

Number of distinct groups (used when x_categorical is true).

◆ x_subset

arma::uvec qe::GeneralizedRotationParams::x_subset

Optional row subset (0-based); empty means use all rows.

◆ x_target

arma::vec qe::GeneralizedRotationParams::x_target

n×1 target variable (raw float or 0-based integer codes).

◆ y1_cols

arma::uvec qe::GeneralizedRotationParams::y1_cols

0-based target column indices in y_model_matrix.

◆ y_categorical

bool qe::GeneralizedRotationParams::y_categorical = false

true if the Y target is categorical.

◆ y_model_matrix

arma::mat qe::GeneralizedRotationParams::y_model_matrix

n×p model matrix for the Y axis.

◆ y_n_groups

arma::uword qe::GeneralizedRotationParams::y_n_groups = 0

Number of distinct groups for the Y axis.

◆ y_target

arma::vec qe::GeneralizedRotationParams::y_target

n×1 target variable for the Y axis.


The documentation for this struct was generated from the following file: