36 float r2_score_py(
const raft::handle_t& handle,
float* y,
float* y_hat,
int n);
54 double r2_score_py(
const raft::handle_t& handle,
double* y,
double* y_hat,
int n);
68 double rand_index(
const raft::handle_t& handle,
double* y,
double* y_hat,
int n);
156 const int64_t* y_hat,
178 double kl_divergence(
const raft::handle_t& handle,
const double* y,
const double* y_hat,
int n);
194 float kl_divergence(
const raft::handle_t& handle,
const float* y,
const float* y_hat,
int n);
211 const int lower_class_range,
212 const int upper_class_range);
232 const int lower_class_range,
233 const int upper_class_range);
253 const int lower_class_range,
254 const int upper_class_range);
274 const int lower_class_range,
275 const int upper_class_range);
296 const int lower_class_range,
297 const int upper_class_range,
313 const int* predictions,
314 const int* ref_predictions,
342 bool isRowMajor =
true,
343 double metric_arg = 2.0);
369 bool isRowMajor =
true,
370 float metric_arg = 2.0f);
417 template <
typename math_t, ML::distance::DistanceType distance_type>
425 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, ML::distance::DistanceType metric)
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, ML::distance::DistanceType metric, float metric_arg)
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)
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)
double silhouette_score(const raft::handle_t &handle, double *y, int nRows, int nCols, int *labels, int nLabels, double *silScores, ML::distance::DistanceType metric)
void pairwise_distance(const raft::handle_t &handle, const double *x, const double *y, double *dist, int m, int n, int k, ML::distance::DistanceType metric, bool isRowMajor=true, double metric_arg=2.0)
Calculates the ij pairwise distances between two input arrays of double type.
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 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)
DistanceType
Definition: distance_type.hpp:10
Definition: dbscan.hpp:18
Definition: dbscan.hpp:14