@@ -111,7 +111,7 @@ public void BinaryClassifierPerceptronTest()
111
111
{
112
112
var binaryPredictors = new [ ] { TestLearners . perceptron } ;
113
113
var binaryClassificationDatasets = GetDatasetsForBinaryClassifierBaseTest ( ) ;
114
- RunAllTests ( binaryPredictors , binaryClassificationDatasets ) ;
114
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , digitsOfPrecision : 6 ) ;
115
115
Done ( ) ;
116
116
}
117
117
@@ -256,7 +256,7 @@ public void LinearClassifierTest()
256
256
TestLearners . binarySgdHinge
257
257
} ;
258
258
var binaryClassificationDatasets = GetDatasetsForBinaryClassifierBaseTest ( ) ;
259
- RunAllTests ( binaryPredictors , binaryClassificationDatasets ) ;
259
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , digitsOfPrecision : 5 ) ;
260
260
Done ( ) ;
261
261
}
262
262
@@ -268,7 +268,7 @@ public void LinearClassifierTest()
268
268
public void BinaryClassifierLogisticRegressionTest ( )
269
269
{
270
270
var binaryPredictors = new [ ] { TestLearners . logisticRegression } ;
271
- RunOneAllTests ( TestLearners . logisticRegression , TestDatasets . breastCancer , summary : true ) ;
271
+ RunOneAllTests ( TestLearners . logisticRegression , TestDatasets . breastCancer , summary : true , digitsOfPrecision : 3 ) ;
272
272
// RunOneAllTests(TestLearners.logisticRegression, TestDatasets.msm);
273
273
Done ( ) ;
274
274
}
@@ -281,7 +281,7 @@ public void BinaryClassifierSymSgdTest()
281
281
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
282
282
return ;
283
283
284
- RunOneAllTests ( TestLearners . symSGD , TestDatasets . breastCancer , summary : true ) ;
284
+ RunOneAllTests ( TestLearners . symSGD , TestDatasets . breastCancer , summary : true , digitsOfPrecision : 4 ) ;
285
285
Done ( ) ;
286
286
}
287
287
@@ -291,7 +291,7 @@ public void BinaryClassifierTesterThresholdingTest()
291
291
{
292
292
var binaryPredictors = new [ ] { TestLearners . logisticRegression } ;
293
293
var binaryClassificationDatasets = new [ ] { TestDatasets . breastCancer } ;
294
- RunAllTests ( binaryPredictors , binaryClassificationDatasets , new [ ] { "eval=BinaryClassifier{threshold=0.95 useRawScore=-}" } , "withThreshold" ) ;
294
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , new [ ] { "eval=BinaryClassifier{threshold=0.95 useRawScore=-}" } , "withThreshold" , digitsOfPrecision : 3 ) ;
295
295
Done ( ) ;
296
296
}
297
297
@@ -304,7 +304,7 @@ public void BinaryClassifierLogisticRegressionNormTest()
304
304
{
305
305
var binaryPredictors = new [ ] { TestLearners . logisticRegressionNorm } ;
306
306
var binaryClassificationDatasets = GetDatasetsForBinaryClassifierBaseTest ( ) ;
307
- RunAllTests ( binaryPredictors , binaryClassificationDatasets ) ;
307
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , digitsOfPrecision : 5 ) ;
308
308
Done ( ) ;
309
309
}
310
310
@@ -330,7 +330,7 @@ public void BinaryClassifierLogisticRegressionBinNormTest()
330
330
{
331
331
var binaryPredictors = new [ ] { TestLearners . logisticRegressionBinNorm } ;
332
332
var binaryClassificationDatasets = GetDatasetsForBinaryClassifierBaseTest ( ) ;
333
- RunAllTests ( binaryPredictors , binaryClassificationDatasets ) ;
333
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , digitsOfPrecision : 6 ) ;
334
334
Done ( ) ;
335
335
}
336
336
@@ -343,7 +343,7 @@ public void BinaryClassifierLogisticRegressionGaussianNormTest()
343
343
{
344
344
var binaryPredictors = new [ ] { TestLearners . logisticRegressionGaussianNorm } ;
345
345
var binaryClassificationDatasets = GetDatasetsForBinaryClassifierBaseTest ( ) ;
346
- RunAllTests ( binaryPredictors , binaryClassificationDatasets ) ;
346
+ RunAllTests ( binaryPredictors , binaryClassificationDatasets , digitsOfPrecision : 4 ) ;
347
347
Done ( ) ;
348
348
}
349
349
@@ -1155,7 +1155,7 @@ public void RegressorOlsTest()
1155
1155
[ TestCategory ( "Regressor" ) ]
1156
1156
public void RegressorOlsTestOne ( )
1157
1157
{
1158
- Run_TrainTest ( TestLearners . Ols , TestDatasets . generatedRegressionDataset ) ;
1158
+ Run_TrainTest ( TestLearners . Ols , TestDatasets . generatedRegressionDataset , digitsOfPrecision : 4 ) ;
1159
1159
Done ( ) ;
1160
1160
}
1161
1161
@@ -1599,7 +1599,7 @@ public void RandomCalibratorPerceptronTest()
1599
1599
public void NoCalibratorLinearSvmTest ( )
1600
1600
{
1601
1601
var datasets = GetDatasetsForCalibratorTest ( ) ;
1602
- RunAllTests ( new [ ] { TestLearners . linearSVM } , datasets , new string [ ] { "cali={}" } , "nocalibration" ) ;
1602
+ RunAllTests ( new [ ] { TestLearners . linearSVM } , datasets , new string [ ] { "cali={}" } , "nocalibration" , digitsOfPrecision : 6 ) ;
1603
1603
Done ( ) ;
1604
1604
}
1605
1605
@@ -1611,7 +1611,7 @@ public void NoCalibratorLinearSvmTest()
1611
1611
public void PAVCalibratorLinearSvmTest ( )
1612
1612
{
1613
1613
var datasets = GetDatasetsForCalibratorTest ( ) ;
1614
- RunAllTests ( new [ ] { TestLearners . linearSVM } , datasets , new string [ ] { "cali=PAV" } , "PAVcalibration" ) ;
1614
+ RunAllTests ( new [ ] { TestLearners . linearSVM } , datasets , new string [ ] { "cali=PAV" } , "PAVcalibration" , digitsOfPrecision : 5 ) ;
1615
1615
Done ( ) ;
1616
1616
}
1617
1617
@@ -1741,8 +1741,8 @@ public void NnConfigTests()
1741
1741
[ TestCategory ( "Anomaly" ) ]
1742
1742
public void PcaAnomalyTest ( )
1743
1743
{
1744
- Run_TrainTest ( TestLearners . PCAAnomalyDefault , TestDatasets . mnistOneClass ) ;
1745
- Run_TrainTest ( TestLearners . PCAAnomalyNoNorm , TestDatasets . mnistOneClass ) ;
1744
+ Run_TrainTest ( TestLearners . PCAAnomalyDefault , TestDatasets . mnistOneClass , digitsOfPrecision : 5 ) ;
1745
+ Run_TrainTest ( TestLearners . PCAAnomalyNoNorm , TestDatasets . mnistOneClass , digitsOfPrecision : 5 ) ;
1746
1746
1747
1747
// REVIEW: This next test was misbehaving in a strange way that seems to have gone away
1748
1748
// mysteriously (bad build?).
0 commit comments