19 #include <cumlprims/opg/matrix/data.hpp>
20 #include <cumlprims/opg/matrix/part_descriptor.hpp>
21 #include <raft/core/handle.hpp>
50 void knn(raft::handle_t& handle,
51 std::vector<Matrix::Data<int64_t>*>* out_I,
52 std::vector<Matrix::floatData_t*>* out_D,
53 std::vector<Matrix::floatData_t*>& idx_data,
54 Matrix::PartDescriptor& idx_desc,
55 std::vector<Matrix::floatData_t*>& query_data,
56 Matrix::PartDescriptor& query_desc,
88 std::vector<Matrix::Data<int>*>* out,
89 std::vector<std::vector<float*>>* probas,
90 std::vector<Matrix::floatData_t*>& idx_data,
91 Matrix::PartDescriptor& idx_desc,
92 std::vector<Matrix::floatData_t*>& query_data,
93 Matrix::PartDescriptor& query_desc,
94 std::vector<std::vector<int*>>& y,
95 std::vector<int*>& uniq_labels,
96 std::vector<int>& n_unique,
97 bool rowMajorIndex =
false,
98 bool rowMajorQuery =
false,
99 bool probas_only =
false,
101 size_t batch_size = 1 << 15,
102 bool verbose =
false);
126 std::vector<Matrix::Data<float>*>* out,
127 std::vector<Matrix::floatData_t*>& idx_data,
128 Matrix::PartDescriptor& idx_desc,
129 std::vector<Matrix::floatData_t*>& query_data,
130 Matrix::PartDescriptor& query_desc,
131 std::vector<std::vector<float*>>& y,
Definition: kernelparams.h:21
void knn(raft::handle_t &handle, std::vector< Matrix::Data< int64_t > * > *out_I, std::vector< Matrix::floatData_t * > *out_D, std::vector< Matrix::floatData_t * > &idx_data, Matrix::PartDescriptor &idx_desc, std::vector< Matrix::floatData_t * > &query_data, Matrix::PartDescriptor &query_desc, bool rowMajorIndex, bool rowMajorQuery, int k, size_t batch_size, bool verbose)
void knn_classify(raft::handle_t &handle, std::vector< Matrix::Data< int > * > *out, std::vector< std::vector< float * >> *probas, std::vector< Matrix::floatData_t * > &idx_data, Matrix::PartDescriptor &idx_desc, std::vector< Matrix::floatData_t * > &query_data, Matrix::PartDescriptor &query_desc, std::vector< std::vector< int * >> &y, std::vector< int * > &uniq_labels, std::vector< int > &n_unique, bool rowMajorIndex=false, bool rowMajorQuery=false, bool probas_only=false, int k=10, size_t batch_size=1<< 15, bool verbose=false)
void knn_regress(raft::handle_t &handle, std::vector< Matrix::Data< float > * > *out, std::vector< Matrix::floatData_t * > &idx_data, Matrix::PartDescriptor &idx_desc, std::vector< Matrix::floatData_t * > &query_data, Matrix::PartDescriptor &query_desc, std::vector< std::vector< float * >> &y, bool rowMajorIndex, bool rowMajorQuery, int k, int n_outputs, size_t batch_size, bool verbose)
Definition: dbscan.hpp:30