19 #include <raft/distance/distance_types.hpp>
47 float r2_score_py(
const raft::handle_t& handle,
float* y,
float* y_hat,
int n);
65 double r2_score_py(
const raft::handle_t& handle,
double* y,
double* y_hat,
int n);
79 double rand_index(
const raft::handle_t& handle,
double* y,
double* y_hat,
int n);
108 raft::distance::DistanceType metric);
141 raft::distance::DistanceType metric);
150 raft::distance::DistanceType metric);
167 const int64_t* y_hat,
189 double kl_divergence(
const raft::handle_t& handle,
const double* y,
const double* y_hat,
int n);
205 float kl_divergence(
const raft::handle_t& handle,
const float* y,
const float* y_hat,
int n);
222 const int lower_class_range,
223 const int upper_class_range);
243 const int lower_class_range,
244 const int upper_class_range);
264 const int lower_class_range,
265 const int upper_class_range);
285 const int lower_class_range,
286 const int upper_class_range);
307 const int lower_class_range,
308 const int upper_class_range,
324 const int* predictions,
325 const int* ref_predictions,
352 raft::distance::DistanceType metric,
353 bool isRowMajor =
true,
354 double metric_arg = 2.0);
379 raft::distance::DistanceType metric,
380 bool isRowMajor =
true,
381 float metric_arg = 2.0f);
396 raft::distance::DistanceType metric,
411 raft::distance::DistanceType metric,
428 template <
typename math_t, raft::distance::DistanceType distance_type>
436 int batchSize = 512);
float silhouette_score(const raft::handle_t &handle, float *X, int n_rows, int n_cols, int *y, int n_labels, float *scores, int chunk, raft::distance::DistanceType metric)
double homogeneity_score(const raft::handle_t &handle, const int *y, const int *y_hat, const int n, const int lower_class_range, const int upper_class_range)
double mutual_info_score(const raft::handle_t &handle, const int *y, const int *y_hat, const int n, const int lower_class_range, const int upper_class_range)
void pairwise_distance(const raft::handle_t &handle, const double *x, const double *y, double *dist, int m, int n, int k, raft::distance::DistanceType metric, bool isRowMajor=true, double metric_arg=2.0)
Calculates the ij pairwise distances between two input arrays of double type.
double completeness_score(const raft::handle_t &handle, const int *y, const int *y_hat, const int n, const int lower_class_range, const int upper_class_range)
double rand_index(const raft::handle_t &handle, double *y, double *y_hat, int n)
double v_measure(const raft::handle_t &handle, const int *y, const int *y_hat, const int n, const int lower_class_range, const int upper_class_range, double beta)
float accuracy_score_py(const raft::handle_t &handle, const int *predictions, const int *ref_predictions, int n)
void pairwiseDistance_sparse(const raft::handle_t &handle, double *x, double *y, double *dist, int x_nrows, int y_nrows, int n_cols, int x_nnz, int y_nnz, int *x_indptr, int *y_indptr, int *x_indices, int *y_indices, raft::distance::DistanceType metric, float metric_arg)
double entropy(const raft::handle_t &handle, const int *y, const int n, const int lower_class_range, const int upper_class_range)
double kl_divergence(const raft::handle_t &handle, const double *y, const double *y_hat, int n)
double adjusted_rand_index(const raft::handle_t &handle, const int64_t *y, const int64_t *y_hat, const int64_t n)
double silhouette_score(const raft::handle_t &handle, double *y, int nRows, int nCols, int *labels, int nLabels, double *silScores, raft::distance::DistanceType metric)
double trustworthiness_score(const raft::handle_t &h, const math_t *X, math_t *X_embedded, int n, int m, int d, int n_neighbors, int batchSize=512)
Compute the trustworthiness score.
float r2_score_py(const raft::handle_t &handle, float *y, float *y_hat, int n)
Definition: dbscan.hpp:30
Definition: dbscan.hpp:26