preprocess_mg.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
10 
11 #include <raft/core/comms.hpp>
12 #include <raft/core/handle.hpp>
13 
14 namespace ML {
15 namespace GLM {
16 namespace opg {
17 
18 void preProcessData(raft::handle_t& handle,
19  std::vector<MLCommon::Matrix::Data<float>*>& input_data,
21  std::vector<MLCommon::Matrix::Data<float>*>& labels,
22  float* mu_input,
23  float* mu_labels,
24  bool fit_intercept,
25  cudaStream_t* streams,
26  int n_streams,
27  bool verbose);
28 
29 void preProcessData(raft::handle_t& handle,
30  std::vector<MLCommon::Matrix::Data<double>*>& input_data,
32  std::vector<MLCommon::Matrix::Data<double>*>& labels,
33  double* mu_input,
34  double* mu_labels,
35  bool fit_intercept,
36  cudaStream_t* streams,
37  int n_streams,
38  bool verbose);
39 
40 void postProcessData(raft::handle_t& handle,
41  std::vector<MLCommon::Matrix::Data<float>*>& input_data,
43  std::vector<MLCommon::Matrix::Data<float>*>& labels,
44  float* coef,
45  float* intercept,
46  float* mu_input,
47  float* mu_labels,
48  bool fit_intercept,
49  cudaStream_t* streams,
50  int n_streams,
51  bool verbose);
52 
53 void postProcessData(raft::handle_t& handle,
54  std::vector<MLCommon::Matrix::Data<double>*>& input_data,
56  std::vector<MLCommon::Matrix::Data<double>*>& labels,
57  double* coef,
58  double* intercept,
59  double* mu_input,
60  double* mu_labels,
61  bool fit_intercept,
62  cudaStream_t* streams,
63  int n_streams,
64  bool verbose);
65 
66 }; // end namespace opg
67 }; // namespace GLM
68 }; // end namespace ML
void postProcessData(raft::handle_t &handle, std::vector< MLCommon::Matrix::Data< float > * > &input_data, MLCommon::Matrix::PartDescriptor &input_desc, std::vector< MLCommon::Matrix::Data< float > * > &labels, float *coef, float *intercept, float *mu_input, float *mu_labels, bool fit_intercept, cudaStream_t *streams, int n_streams, bool verbose)
void preProcessData(raft::handle_t &handle, std::vector< MLCommon::Matrix::Data< float > * > &input_data, MLCommon::Matrix::PartDescriptor &input_desc, std::vector< MLCommon::Matrix::Data< float > * > &labels, float *mu_input, float *mu_labels, bool fit_intercept, cudaStream_t *streams, int n_streams, bool verbose)
Definition: dbscan.hpp:18
This is a helper wrapper around the multi-gpu data blocks owned by a worker. It's design is NOT final...
Definition: data.hpp:18
Definition: part_descriptor.hpp:40