Loading [MathJax]/extensions/tex2jax.js
cuML C++ API  23.12
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dbscan.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2023, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <raft/distance/distance_types.hpp>
20 
22 
23 namespace raft {
24 class handle_t;
25 }
26 
27 namespace ML {
28 namespace Dbscan {
29 
58 void fit(const raft::handle_t& handle,
59  float* input,
60  int n_rows,
61  int n_cols,
62  float eps,
63  int min_pts,
64  raft::distance::DistanceType metric,
65  int* labels,
66  int* core_sample_indices = nullptr,
67  float* sample_weight = nullptr,
68  size_t max_bytes_per_batch = 0,
69  int verbosity = CUML_LEVEL_INFO,
70  bool opg = false);
71 void fit(const raft::handle_t& handle,
72  double* input,
73  int n_rows,
74  int n_cols,
75  double eps,
76  int min_pts,
77  raft::distance::DistanceType metric,
78  int* labels,
79  int* core_sample_indices = nullptr,
80  double* sample_weight = nullptr,
81  size_t max_bytes_per_batch = 0,
82  int verbosity = CUML_LEVEL_INFO,
83  bool opg = false);
84 
85 void fit(const raft::handle_t& handle,
86  float* input,
87  int64_t n_rows,
88  int64_t n_cols,
89  float eps,
90  int min_pts,
91  raft::distance::DistanceType metric,
92  int64_t* labels,
93  int64_t* core_sample_indices = nullptr,
94  float* sample_weight = nullptr,
95  size_t max_bytes_per_batch = 0,
96  int verbosity = CUML_LEVEL_INFO,
97  bool opg = false);
98 void fit(const raft::handle_t& handle,
99  double* input,
100  int64_t n_rows,
101  int64_t n_cols,
102  double eps,
103  int min_pts,
104  raft::distance::DistanceType metric,
105  int64_t* labels,
106  int64_t* core_sample_indices = nullptr,
107  double* sample_weight = nullptr,
108  size_t max_bytes_per_batch = 0,
109  int verbosity = CUML_LEVEL_INFO,
110  bool opg = false);
111 
114 } // namespace Dbscan
115 } // namespace ML
#define CUML_LEVEL_INFO
Definition: log_levels.hpp:28
void fit(const raft::handle_t &handle, float *input, int n_rows, int n_cols, float eps, int min_pts, raft::distance::DistanceType metric, int *labels, int *core_sample_indices=nullptr, float *sample_weight=nullptr, size_t max_bytes_per_batch=0, int verbosity=CUML_LEVEL_INFO, bool opg=false)
Definition: dbscan.hpp:27
Definition: dbscan.hpp:23