Functions
ML::TSVD::opg Namespace Reference

Functions

void fit (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::floatData_t **input, float *components, float *singular_vals, paramsTSVDMG &prms, bool verbose=false)
 performs MNMG fit operation for the tsvd More...
 
void fit (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::doubleData_t **input, double *components, double *singular_vals, paramsTSVDMG &prms, bool verbose=false)
 
void fit_transform (raft::handle_t &handle, std::vector< MLCommon::Matrix::Data< float > * > &input_data, MLCommon::Matrix::PartDescriptor &input_desc, std::vector< MLCommon::Matrix::Data< float > * > &trans_data, MLCommon::Matrix::PartDescriptor &trans_desc, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, paramsTSVDMG &prms, bool verbose)
 performs MNMG fit and transform operation for the tsvd. More...
 
void fit_transform (raft::handle_t &handle, std::vector< MLCommon::Matrix::Data< double > * > &input_data, MLCommon::Matrix::PartDescriptor &input_desc, std::vector< MLCommon::Matrix::Data< double > * > &trans_data, MLCommon::Matrix::PartDescriptor &trans_desc, double *components, double *explained_var, double *explained_var_ratio, double *singular_vals, paramsTSVDMG &prms, bool verbose)
 
void transform (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::Data< float > **input, float *components, MLCommon::Matrix::Data< float > **trans_input, paramsTSVDMG &prms, bool verbose)
 performs MNMG transform operation for the tsvd. More...
 
void transform (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::Data< double > **input, double *components, MLCommon::Matrix::Data< double > **trans_input, paramsTSVDMG &prms, bool verbose)
 
void inverse_transform (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::Data< float > **trans_input, float *components, MLCommon::Matrix::Data< float > **input, paramsTSVDMG &prms, bool verbose)
 performs MNMG inverse transform operation for the output. More...
 
void inverse_transform (raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::Data< double > **trans_input, double *components, MLCommon::Matrix::Data< double > **input, paramsTSVDMG &prms, bool verbose)
 

Function Documentation

◆ fit() [1/2]

void ML::TSVD::opg::fit ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::doubleData_t **  input,
double *  components,
double *  singular_vals,
paramsTSVDMG prms,
bool  verbose = false 
)

◆ fit() [2/2]

void ML::TSVD::opg::fit ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::floatData_t **  input,
float *  components,
float *  singular_vals,
paramsTSVDMG prms,
bool  verbose = false 
)

performs MNMG fit operation for the tsvd

Parameters
[in]handlethe internal cuml handle object
[in]rank_sizesincludes all the partition size information for the rank
[in]n_partsnumber of partitions
[in]inputinput data
[out]componentsprincipal components of the input data
[out]singular_valssingular values of the data
[in]prmsdata structure that includes all the parameters from input size to algorithm
[in]verbose

◆ fit_transform() [1/2]

void ML::TSVD::opg::fit_transform ( raft::handle_t &  handle,
std::vector< MLCommon::Matrix::Data< double > * > &  input_data,
MLCommon::Matrix::PartDescriptor &  input_desc,
std::vector< MLCommon::Matrix::Data< double > * > &  trans_data,
MLCommon::Matrix::PartDescriptor &  trans_desc,
double *  components,
double *  explained_var,
double *  explained_var_ratio,
double *  singular_vals,
paramsTSVDMG prms,
bool  verbose 
)

◆ fit_transform() [2/2]

void ML::TSVD::opg::fit_transform ( raft::handle_t &  handle,
std::vector< MLCommon::Matrix::Data< float > * > &  input_data,
MLCommon::Matrix::PartDescriptor &  input_desc,
std::vector< MLCommon::Matrix::Data< float > * > &  trans_data,
MLCommon::Matrix::PartDescriptor &  trans_desc,
float *  components,
float *  explained_var,
float *  explained_var_ratio,
float *  singular_vals,
paramsTSVDMG prms,
bool  verbose 
)

performs MNMG fit and transform operation for the tsvd.

Parameters
[in]handlethe internal cuml handle object
[in]input_datainput data
[in]input_descinput descriptor for data
[out]trans_datatransformed input data
[out]trans_desctransformed input data descriptor
[out]componentsprincipal components of the input data
[out]explained_varexplained var
[out]explained_var_ratiothe explained var ratio
[out]singular_valssingular values of the data
[in]prmsdata structure that includes all the parameters from input size to algorithm
[in]verbose

◆ inverse_transform() [1/2]

void ML::TSVD::opg::inverse_transform ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::Data< double > **  trans_input,
double *  components,
MLCommon::Matrix::Data< double > **  input,
paramsTSVDMG prms,
bool  verbose 
)

◆ inverse_transform() [2/2]

void ML::TSVD::opg::inverse_transform ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::Data< float > **  trans_input,
float *  components,
MLCommon::Matrix::Data< float > **  input,
paramsTSVDMG prms,
bool  verbose 
)

performs MNMG inverse transform operation for the output.

Parameters
[in]handlethe internal cuml handle object
[in]rank_sizesincludes all the partition size information for the rank
[in]n_partsnumber of partitions
[in]trans_inputtransformed input data
[in]componentsprincipal components of the input data
[out]inputinput data
[in]prmsdata structure that includes all the parameters from input size to algorithm
[in]verbose

◆ transform() [1/2]

void ML::TSVD::opg::transform ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::Data< double > **  input,
double *  components,
MLCommon::Matrix::Data< double > **  trans_input,
paramsTSVDMG prms,
bool  verbose 
)

◆ transform() [2/2]

void ML::TSVD::opg::transform ( raft::handle_t &  handle,
MLCommon::Matrix::RankSizePair **  rank_sizes,
std::uint32_t  n_parts,
MLCommon::Matrix::Data< float > **  input,
float *  components,
MLCommon::Matrix::Data< float > **  trans_input,
paramsTSVDMG prms,
bool  verbose 
)

performs MNMG transform operation for the tsvd.

Parameters
[in]handlethe internal cuml handle object
[in]rank_sizesincludes all the partition size information for the rank
[in]n_partsnumber of partitions
[in]inputinput data
[in]componentsprincipal components of the input data
[out]trans_inputtransformed input data
[in]prmsdata structure that includes all the parameters from input size to algorithm
[in]verbose