@@ -88,8 +88,8 @@ void sigEMTreeCluster(vector<SVector<bool>*> &vectors) {
8888
8989 // EMTree
9090 int depth = 3 ;
91- int iters = 2 ;
92- vector<int > nodeSizes = {100 }; // {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
91+ int iters = 10 ;
92+ vector<int > nodeSizes = {10 }; // {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
9393 for (int m : nodeSizes) {
9494 std::cout << " -------------------" << std::endl;
9595 EMTree<vecType, clustererType, distanceType, protoType> emt (m);
@@ -403,9 +403,9 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
403403 typedef KMeans<vecType, seederType, distanceType, protoType> clustererType;
404404
405405 // run TSVQ vs EM-tree convergence
406- if (false ) {
406+ if (true ) {
407407 int depth = 3 , m = 10 ;
408- int iterRange = 40 ; // test RMSE at 1 to maxiters iterations
408+ int iterRange = 10 ; // test RMSE at 1 to maxiters iterations
409409
410410 // TSVQ
411411 if (true ) {
@@ -414,6 +414,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
414414 vector<double > seconds;
415415 for (int maxiters = 1 ; maxiters <= iterRange; ++maxiters) {
416416 boost::timer::auto_cpu_timer all;
417+ srand (1234 );
417418 TSVQ<vecType, clustererType, distanceType, protoType> tsvq (m, depth, maxiters);
418419 tsvq.cluster (vectors);
419420 all.stop ();
@@ -439,6 +440,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
439440 splits.push_back (m);
440441 }
441442 boost::timer::auto_cpu_timer all;
443+ srand (1234 );
442444 EMTree<vecType, clustererType, distanceType, protoType> emt (m);
443445 // seeding does first iteration
444446 emt.seedSingleThreaded (vectors, splits);
@@ -489,7 +491,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
489491 }
490492
491493 // EM-tree
492- if (true ) {
494+ if (false ) {
493495 int maxiters = 6 ;
494496 vector<double > rmse;
495497 vector<int > clusters;
@@ -616,7 +618,7 @@ int main(int argc, char** argv) {
616618 journalPaperExperiments (subset);
617619 // sigKTreeCluster(vectors);
618620 // sigTSVQCluster(vectors);
619- // sigEMTreeCluster(vectors );
621+ // sigEMTreeCluster(subset );
620622 // testHistogram(vectors);
621623 // testMeanVersusNNSpeed(vectors);
622624 // testReadVectors();
0 commit comments