|
int | closest_center (float *datum, matrix centers) |
|
void | copy (float *x, float *y, int n) |
|
float | dist (float *x, float *y, int n) |
|
float | dist_to_closest_center (float *datum, matrix centers) |
|
model | do_kmeans (matrix data, int k) |
|
void | free_matrix (matrix &m) |
|
int | kmeans_expectation (matrix data, int *assignments, matrix centers) |
|
void | kmeans_maximization (matrix data, int *assignments, matrix centers) |
|
matrix | make_matrix (int rows, int cols) |
|
float | matrix_topk_accuracy (matrix truth, matrix guess, int k) |
|
void | random_centers (matrix data, matrix centers) |
|
int * | sample (int n) |
|