@@ -1051,7 +1051,7 @@ public void trainDrop() throws Exception {
10511051 assertEquals (1477872300 , (long ) model .model .get (1 ).getKey ());
10521052 assertEquals (50.0 , model .model .get (1 ).getValue (), 0.00001 );
10531053
1054- // two each - TOO MANY so we don't drop any
1054+ // two each - TOO MANY so we drop as much as possible
10551055 config .setProperty ("NUM_TO_DROP_HIGHEST" , "2" );
10561056 config .setProperty ("NUM_TO_DROP_LOWEST" , "2" );
10571057 model = new OlympicModel2 (config );
@@ -1072,11 +1072,11 @@ public void trainDrop() throws Exception {
10721072
10731073 assertEquals (2 , model .model .size ());
10741074 assertEquals (1477872000 , (long ) model .model .get (0 ).getKey ());
1075- assertEquals (25 .0 , model .model .get (0 ).getValue (), 0.00001 );
1075+ assertEquals (30 .0 , model .model .get (0 ).getValue (), 0.00001 );
10761076 assertEquals (1477872300 , (long ) model .model .get (1 ).getKey ());
1077- assertEquals (47.5 , model .model .get (1 ).getValue (), 0.00001 );
1077+ assertEquals (55.0 , model .model .get (1 ).getValue (), 0.00001 );
10781078
1079- // one each - TOO MANY with NaNs so we don't drop any
1079+ // one each - TOO MANY so we drop as much as possible
10801080 config .setProperty ("NUM_TO_DROP_HIGHEST" , "1" );
10811081 config .setProperty ("NUM_TO_DROP_LOWEST" , "1" );
10821082 model = new OlympicModel2 (config );
@@ -1097,9 +1097,9 @@ public void trainDrop() throws Exception {
10971097
10981098 assertEquals (2 , model .model .size ());
10991099 assertEquals (1477872000 , (long ) model .model .get (0 ).getKey ());
1100- assertEquals (25 .0 , model .model .get (0 ).getValue (), 0.00001 );
1100+ assertEquals (40 .0 , model .model .get (0 ).getValue (), 0.00001 );
11011101 assertEquals (1477872300 , (long ) model .model .get (1 ).getKey ());
1102- assertEquals (45 .0 , model .model .get (1 ).getValue (), 0.00001 );
1102+ assertEquals (65 .0 , model .model .get (1 ).getValue (), 0.00001 );
11031103 }
11041104
11051105 @ Test
0 commit comments