Loading [MathJax]/extensions/tex2jax.js
cuML C++ API  24.04
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
umapparams.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2024, 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 <cuml/common/callback.hpp>
20 #include <cuml/common/logger.hpp>
21 
22 #include <raft/distance/distance_types.hpp>
23 
24 namespace ML {
25 
26 class UMAPParams {
27  public:
29 
36  int n_neighbors = 15;
37 
41  int n_components = 2;
42 
47  int n_epochs = 0;
48 
52  float learning_rate = 1.0;
53 
62  float min_dist = 0.1;
63 
68  float spread = 1.0;
69 
78  float set_op_mix_ratio = 1.0;
79 
87  float local_connectivity = 1.0;
88 
94  float repulsion_strength = 1.0;
95 
103 
110  float transform_queue_size = 4.0;
111 
116 
122  float a = -1.0;
123 
129  float b = -1.0;
130 
134  float initial_alpha = 1.0;
135 
141  int init = 1;
142 
148 
150 
151  float target_weight = 0.5;
152 
153  uint64_t random_state = 0;
154 
160  bool deterministic = true;
161 
162  raft::distance::DistanceType metric = raft::distance::DistanceType::L2SqrtExpanded;
163 
164  float p = 2.0;
165 
167 };
168 
169 } // namespace ML
Definition: callback.hpp:29
Definition: umapparams.h:26
bool deterministic
Definition: umapparams.h:160
float min_dist
Definition: umapparams.h:62
float repulsion_strength
Definition: umapparams.h:94
float local_connectivity
Definition: umapparams.h:87
float set_op_mix_ratio
Definition: umapparams.h:78
float initial_alpha
Definition: umapparams.h:134
float target_weight
Definition: umapparams.h:151
float spread
Definition: umapparams.h:68
raft::distance::DistanceType metric
Definition: umapparams.h:162
float a
Definition: umapparams.h:122
int n_components
Definition: umapparams.h:41
int n_neighbors
Definition: umapparams.h:36
float transform_queue_size
Definition: umapparams.h:110
MetricType target_metric
Definition: umapparams.h:149
float p
Definition: umapparams.h:164
int negative_sample_rate
Definition: umapparams.h:102
float b
Definition: umapparams.h:129
int n_epochs
Definition: umapparams.h:47
int verbosity
Definition: umapparams.h:115
int init
Definition: umapparams.h:141
MetricType
Definition: umapparams.h:28
@ EUCLIDEAN
Definition: umapparams.h:28
@ CATEGORICAL
Definition: umapparams.h:28
Internals::GraphBasedDimRedCallback * callback
Definition: umapparams.h:166
uint64_t random_state
Definition: umapparams.h:153
float learning_rate
Definition: umapparams.h:52
int target_n_neighbors
Definition: umapparams.h:147
#define CUML_LEVEL_INFO
Definition: log_levels.hpp:28
Definition: dbscan.hpp:30