X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=clueless-kmeans.git;a=blobdiff_plain;f=clueless-kmeans.cc;h=d71a3cff9eb2943ecdfaf771934f8fd356791f42;hp=557f0d8d2a161fd789aac9d2d2d28c57fe20629d;hb=HEAD;hpb=8f8e8f2fb669aa421c245eada82095fb3fdcadc9 diff --git a/clueless-kmeans.cc b/clueless-kmeans.cc index 557f0d8..d71a3cf 100644 --- a/clueless-kmeans.cc +++ b/clueless-kmeans.cc @@ -1,17 +1,17 @@ /* - * clueless-kmean is a variant of k-mean which enforces balanced + * clueless-kmeans is a variant of k-means which enforces balanced * distribution of classes in every cluster * * Copyright (c) 2013 Idiap Research Institute, http://www.idiap.ch/ * Written by Francois Fleuret * - * This file is part of clueless-kmean. + * This file is part of clueless-kmeans. * - * clueless-kmean is free software: you can redistribute it and/or + * clueless-kmeans is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 3 as published by the Free Software Foundation. * - * clueless-kmean is distributed in the hope that it will be useful, + * clueless-kmeans is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. @@ -83,12 +83,14 @@ int main(int argc, char **argv) { mode = Clusterer::STANDARD_LP_ASSOCIATION; } else if(strcmp(argv[1], "clueless") == 0) { mode = Clusterer::UNINFORMATIVE_LP_ASSOCIATION; + } else if(strcmp(argv[1], "clueless-absolute") == 0) { + mode = Clusterer::UNINFORMATIVE_LP_ASSOCIATION_ABSOLUTE; } else { cerr << "Unknown association mode " << argv[1] << endl; exit(EXIT_FAILURE); } } else { - cerr << "Usage: " << argv[0] << " standard|clueless" << endl; + cerr << "Usage: " << argv[0] << " standard|clueless|clueless-absolute" << endl; exit(EXIT_FAILURE); }