21 #include <cumlprims/opg/matrix/data.hpp>
22 #include <cumlprims/opg/matrix/part_descriptor.hpp>
42 void fit(raft::handle_t& handle,
43 std::vector<MLCommon::Matrix::Data<float>*>& input_data,
44 MLCommon::Matrix::PartDescriptor& input_desc,
47 float* explained_var_ratio,
52 bool verbose =
false);
54 void fit(raft::handle_t& handle,
55 std::vector<MLCommon::Matrix::Data<double>*>& input_data,
56 MLCommon::Matrix::PartDescriptor& input_desc,
58 double* explained_var,
59 double* explained_var_ratio,
60 double* singular_vals,
64 bool verbose =
false);
83 MLCommon::Matrix::RankSizePair** rank_sizes,
84 std::uint32_t n_parts,
85 MLCommon::Matrix::floatData_t** input,
86 MLCommon::Matrix::floatData_t** trans_input,
89 float* explained_var_ratio,
97 MLCommon::Matrix::RankSizePair** rank_sizes,
98 std::uint32_t n_parts,
99 MLCommon::Matrix::doubleData_t** input,
100 MLCommon::Matrix::doubleData_t** trans_input,
102 double* explained_var,
103 double* explained_var_ratio,
104 double* singular_vals,
124 MLCommon::Matrix::RankSizePair** rank_sizes,
125 std::uint32_t n_parts,
126 MLCommon::Matrix::Data<float>** input,
128 MLCommon::Matrix::Data<float>** trans_input,
129 float* singular_vals,
135 MLCommon::Matrix::RankSizePair** rank_sizes,
136 std::uint32_t n_parts,
137 MLCommon::Matrix::Data<double>** input,
139 MLCommon::Matrix::Data<double>** trans_input,
140 double* singular_vals,
159 MLCommon::Matrix::RankSizePair** rank_sizes,
160 std::uint32_t n_parts,
161 MLCommon::Matrix::Data<float>** trans_input,
163 MLCommon::Matrix::Data<float>** input,
164 float* singular_vals,
170 MLCommon::Matrix::RankSizePair** rank_sizes,
171 std::uint32_t n_parts,
172 MLCommon::Matrix::Data<double>** trans_input,
174 MLCommon::Matrix::Data<double>** input,
175 double* singular_vals,
structure for pca parameters. Ref: http://scikit-learn.org/stable/modules/generated/sklearn....
Definition: params.hpp:75
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, float *singular_vals, float *mu, paramsPCAMG prms, bool verbose)
performs MNMG inverse transform operation for the pca
void fit_transform(raft::handle_t &handle, MLCommon::Matrix::RankSizePair **rank_sizes, std::uint32_t n_parts, MLCommon::Matrix::floatData_t **input, MLCommon::Matrix::floatData_t **trans_input, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, float *mu, float *noise_vars, paramsPCAMG prms, bool verbose)
performs MNMG fit and transform operation for the pca
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, float *singular_vals, float *mu, paramsPCAMG prms, bool verbose)
performs MNMG transform operation for the pca
void fit(raft::handle_t &handle, std::vector< MLCommon::Matrix::Data< float > * > &input_data, MLCommon::Matrix::PartDescriptor &input_desc, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, float *mu, float *noise_vars, paramsPCAMG prms, bool verbose=false)
performs MNMG fit operation for the pca
Definition: dbscan.hpp:30
@ PCA
Definition: tsne.h:31