"dgl_sparse/include/vscode:/vscode.git/clone" did not exist on "c42fa8a55c239fb35ada0ff6fbe50e21c469d907"
Commit 77ffbef9 authored by Davis King's avatar Davis King
Browse files

Added a comment to cite the kmeans++ paper

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402322
parent 05b35386
......@@ -247,6 +247,14 @@ namespace dlib
double percentile = 0.01
)
{
/*
This function is basically just a non-randomized version of the kmeans++ algorithm
described in the paper:
kmeans++: The Advantages of Careful Seeding by Arthur and Vassilvitskii
*/
// make sure requires clause is not broken
DLIB_CASSERT(num_centers > 1 && 0 <= percentile && percentile < 1 && samples.size() > 1,
"\tvoid pick_initial_centers()"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment