21 #include <cumlprims/opg/matrix/data.hpp>
22 #include <cumlprims/opg/matrix/part_descriptor.hpp>
39 void fit(raft::handle_t& handle,
40 MLCommon::Matrix::RankSizePair** rank_sizes,
41 std::uint32_t n_parts,
42 MLCommon::Matrix::floatData_t** input,
46 bool verbose =
false);
48 void fit(raft::handle_t& handle,
49 MLCommon::Matrix::RankSizePair** rank_sizes,
50 std::uint32_t n_parts,
51 MLCommon::Matrix::doubleData_t** input,
53 double* singular_vals,
55 bool verbose =
false);
72 std::vector<MLCommon::Matrix::Data<float>*>& input_data,
73 MLCommon::Matrix::PartDescriptor& input_desc,
74 std::vector<MLCommon::Matrix::Data<float>*>& trans_data,
75 MLCommon::Matrix::PartDescriptor& trans_desc,
78 float* explained_var_ratio,
84 std::vector<MLCommon::Matrix::Data<double>*>& input_data,
85 MLCommon::Matrix::PartDescriptor& input_desc,
86 std::vector<MLCommon::Matrix::Data<double>*>& trans_data,
87 MLCommon::Matrix::PartDescriptor& trans_desc,
89 double* explained_var,
90 double* explained_var_ratio,
91 double* singular_vals,
107 MLCommon::Matrix::RankSizePair** rank_sizes,
108 std::uint32_t n_parts,
109 MLCommon::Matrix::Data<float>** input,
111 MLCommon::Matrix::Data<float>** trans_input,
116 MLCommon::Matrix::RankSizePair** rank_sizes,
117 std::uint32_t n_parts,
118 MLCommon::Matrix::Data<double>** input,
120 MLCommon::Matrix::Data<double>** trans_input,
136 MLCommon::Matrix::RankSizePair** rank_sizes,
137 std::uint32_t n_parts,
138 MLCommon::Matrix::Data<float>** trans_input,
140 MLCommon::Matrix::Data<float>** input,
145 MLCommon::Matrix::RankSizePair** rank_sizes,
146 std::uint32_t n_parts,
147 MLCommon::Matrix::Data<double>** trans_input,
149 MLCommon::Matrix::Data<double>** input,
Definition: params.hpp:50
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
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.
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.
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.
Definition: dbscan.hpp:30