Skip to main content

MLCore::SupervisedPCAParameters

MLCore::SupervisedPCAParameters

Parameters for Supervised PCA dimensionality reduction. More…

#include <MLModelParameters.hpp>

Inherits from MLCore::MLModelParametersBase

Public Attributes

Name
std::size_t n_components
Number of principal components to retain.

Additional inherited members

Public Functions inherited from MLCore::MLModelParametersBase

Name
virtual ~MLModelParametersBase() =default

Detailed Description

struct MLCore::SupervisedPCAParameters;

Parameters for Supervised PCA dimensionality reduction.

Supervised PCA fits PCA on the labeled subset of observations only, so that the principal components capture the variance structure of the labeled data. All observations are then projected into that space.

Public Attributes Documentation

variable n_components

std::size_t n_components = 2;

Number of principal components to retain.


Updated on 2026-11-13 at 20:25:41 +0000