ReductionConfig

API Definition

inline ReductionConfig(int dimIn, int dimOut, float eigenPower, bool randomRotation)

Function

Default constructor of ReductionConfig. This function is used when PCAR is used to reduce dimensions.

Input

int dimIn: input feature dimension, that is, dimension before dimension reduction. This parameter is required by PCAR.

int dimOut: output feature dimensions, that is, dimensions after dimension reduction. This parameter is required by PCAR.

float eigenPower: power of singular values. This parameter is required by PCAR.

bool randomRotation: whether to perform random rotation. This parameter is required by PCAR.

Output

N/A

Return Value

N/A

Restrictions

When different dimension reduction algorithms are used, corresponding parameters need to be configured, and the dimensions after dimension reduction must meet the dimension restrictions of the dimension-reduced data index.

When PCAR is used, ensure that dimOut > 0, dimIn ≥ dimOut, and the value range of eigenPower is [–0.5, 0].