@@ -88,8 +88,8 @@ void sigEMTreeCluster(vector<SVector<bool>*> &vectors) {
88
88
89
89
// EMTree
90
90
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};
93
93
for (int m : nodeSizes) {
94
94
std::cout << " -------------------" << std::endl;
95
95
EMTree<vecType, clustererType, distanceType, protoType> emt (m);
@@ -403,9 +403,9 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
403
403
typedef KMeans<vecType, seederType, distanceType, protoType> clustererType;
404
404
405
405
// run TSVQ vs EM-tree convergence
406
- if (false ) {
406
+ if (true ) {
407
407
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
409
409
410
410
// TSVQ
411
411
if (true ) {
@@ -414,6 +414,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
414
414
vector<double > seconds;
415
415
for (int maxiters = 1 ; maxiters <= iterRange; ++maxiters) {
416
416
boost::timer::auto_cpu_timer all;
417
+ srand (1234 );
417
418
TSVQ<vecType, clustererType, distanceType, protoType> tsvq (m, depth, maxiters);
418
419
tsvq.cluster (vectors);
419
420
all.stop ();
@@ -439,6 +440,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
439
440
splits.push_back (m);
440
441
}
441
442
boost::timer::auto_cpu_timer all;
443
+ srand (1234 );
442
444
EMTree<vecType, clustererType, distanceType, protoType> emt (m);
443
445
// seeding does first iteration
444
446
emt.seedSingleThreaded (vectors, splits);
@@ -489,7 +491,7 @@ void journalPaperExperiments(vector<SVector<bool>*>& vectors) {
489
491
}
490
492
491
493
// EM-tree
492
- if (true ) {
494
+ if (false ) {
493
495
int maxiters = 6 ;
494
496
vector<double > rmse;
495
497
vector<int > clusters;
@@ -616,7 +618,7 @@ int main(int argc, char** argv) {
616
618
journalPaperExperiments (subset);
617
619
// sigKTreeCluster(vectors);
618
620
// sigTSVQCluster(vectors);
619
- // sigEMTreeCluster(vectors );
621
+ // sigEMTreeCluster(subset );
620
622
// testHistogram(vectors);
621
623
// testMeanVersusNNSpeed(vectors);
622
624
// testReadVectors();
0 commit comments