112 references to TestLearnersBase
Microsoft.ML.Predictor.Tests (111)
TestPredictors.cs (111)
28using TestLearners = TestLearnersBase; 113var binaryPredictors = new[] { TestLearners.perceptron }; 125TestLearners.binaryPrior}; 141var predictor = TestLearners.fastRankClassificationPruning; 155RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.iris, digitsOfPrecision: 3); 171RunOneAllTests(TestLearners.multiclassLogisticRegressionNonNegative, TestDatasets.iris, digitsOfPrecision: 4); 182TestLearners.multiclassSdca, TestLearners.multiclassSdcaL1, TestLearners.multiclassSdcaSmoothedHinge }; 200RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.irisTreeFeaturized, digitsOfPrecision: 4); 201RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.irisTreeFeaturizedPermuted, digitsOfPrecision: 4); 232RunOneAllTests(TestLearners.Ova, TestDatasets.iris, digitsOfPrecision: 6); 233RunOneAllTests(TestLearners.OvaWithFastForest, TestDatasets.iris, digitsOfPrecision: 6); 234RunOneAllTests(TestLearners.Pkpd, TestDatasets.iris, digitsOfPrecision: 6); 244var predictors = new[] { TestLearners.KMeansDefault, TestLearners.KMeansInitPlusPlus, TestLearners.KMeansInitRandom }; 257TestLearners.binarySdca, 258TestLearners.binarySdcaL1, 259TestLearners.binarySdcaSmoothedHinge, 260TestLearners.binarySgd, 261TestLearners.binarySgdHinge 275var binaryPredictors = new[] { TestLearners.logisticRegression }; 276RunOneAllTests(TestLearners.logisticRegression, TestDatasets.breastCancer, summary: true, digitsOfPrecision: 3); 288RunOneAllTests(TestLearners.symSGD, TestDatasets.breastCancer, summary: true, digitsOfPrecision: 4); 296var binaryPredictors = new[] { TestLearners.logisticRegression }; 309var binaryPredictors = new[] { TestLearners.logisticRegressionNorm }; 322var binaryPredictors = new[] { TestLearners.logisticRegressionNonNegative }; 335var binaryPredictors = new[] { TestLearners.logisticRegressionBinNorm }; 354var binaryPredictors = new[] { TestLearners.logisticRegressionGaussianNorm }; 370var learner = TestLearners.fastRankClassification; 394var binaryPredictors = new[] { TestLearners.FastForestClassification }; 412TestLearners.FastForestRegression, 413TestLearners.QuantileRegressionScorer, 429new[] { TestLearners.FastForestClassification }, 443TestLearners.FastForestRegression, 444TestLearners.QuantileRegressionScorer, 461var learners = new[] { TestLearners.FastTreeClassfier, TestLearners.FastTreeDropoutClassfier, 462TestLearners.FastTreeBsrClassfier, TestLearners.FastTreeClassfierDisk }; 478var learners = new[] { TestLearners.LightGBMClassifier }; 507Run_Test(TestLearners.LightGBMClassifier, TestDatasets.breastCancerPipeWithoutMamlExtraSettings, previousBaselineModelPath); 515var binaryPredictors = new[] { TestLearners.LightGBMGoss }; 526var binaryPredictors = new[] { TestLearners.LightGBMDart }; 540var multiPredictors = new[] { TestLearners.LightGBMMC }; 554var multiPredictors = new[] { TestLearners.LightGBMMC }; 568var regPredictors = new[] { TestLearners.LightGBMReg }; 582var regPredictors = new[] { TestLearners.LightGBMRegMae }; 596var regPredictors = new[] { TestLearners.LightGBMRegRmse }; 977var learners = new[] { TestLearners.FastTreeClassfier, TestLearners.FastTreeWithCategoricalClassfier, 978TestLearners.FastTreeClassfierDisk, TestLearners.FastTreeWithCategoricalClassfierDisk }; 997var learners = new[] { TestLearners.FastTreeRegressor, TestLearners.FastTreeRegressorCategorical }; 1016var learners = new[] { TestLearners.FastTreeClassfier }; 1036var learners = new[] { TestLearners.FastTreeClassfierHighMinDocs }; 1053var learners = new[] { TestLearners.FastTreeRanker, TestLearners.FastTreeRankerCustomGains }; 1071TestLearners.FastTreeRegressor, 1072TestLearners.FastTreeDropoutRegressor, 1073TestLearners.FastTreeTweedieRegressor 1091var learners = new[] { TestLearners.RegressionGamTrainer }; 1110var learners = new[] { TestLearners.BinaryClassificationGamTrainer, TestLearners.BinaryClassificationGamTrainerDiskTranspose }; 1133Run_TrainTest(TestLearners.FastTreeUnderbuiltRegressor, TestDatasets.housing, null, "Underbuilt"); 1145var binaryPredictors = new[] { TestLearners.linearSVM }; 1161var regressionPredictors = new[] { TestLearners.fastRankRegression }; 1175var regressionPredictors = new[] { TestLearners.OGD }; 1188var regressionPredictors = new[] { TestLearners.Ols, TestLearners.OlsNorm, TestLearners.OlsReg }; 1201Run_TrainTest(TestLearners.Ols, TestDatasets.generatedRegressionDataset, digitsOfPrecision: 4); 1213var regressionPredictors = new[] { TestLearners.Sdcar, TestLearners.SdcarNorm, TestLearners.SdcarReg }; 1540var rankingPredictors = new[] { TestLearners.fastRankRanking }; 1554var regressionPredictors = new[] { TestLearners.poissonRegression }; 1570var regressionPredictors = new[] { TestLearners.poissonRegressionNonNegative }; 1588new List<PredictorAndArgs>() { TestLearners.multiclassLogisticRegressionRegularized }, 1609RunAllTests(new[] { TestLearners.perceptronDefault }, datasets, new string[] { "cali={}" }, "nocalibration", digitsOfPrecision: 5); 1621RunAllTests(new[] { TestLearners.perceptronDefault }, datasets, new[] { "cali=PAV" }, "PAVcalibration"); 1633RunAllTests(new[] { TestLearners.perceptronDefault }, datasets, new string[] { "numcali=200" }, "calibrateRandom"); 1645RunAllTests(new[] { TestLearners.linearSVM }, datasets, new string[] { "cali={}" }, "nocalibration", digitsOfPrecision: 6); 1657RunAllTests(new[] { TestLearners.linearSVM }, datasets, new string[] { "cali=PAV" }, "PAVcalibration", digitsOfPrecision: 5); 1671var learner = TestLearners.fastRankClassificationWeighted; 1694new[] { TestLearners.logisticRegression }, 1708new[] { TestLearners.NnBinDefault }, 1723RunOneAllTests(TestLearners.fastRankRegressionWeighted, TestDatasets.housingWeightedRep); 1738RunOneAllTests(TestLearners.fastRankRankingWeighted, TestDatasets.rankingWeighted); 1750path = DeleteOutputPath(TestLearners.NnBinDefault.Trainer.Kind, "BcInputMismatch.nn"); 1757RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.breastCancer, null, "InputMismatch"); 1760path = DeleteOutputPath(TestLearners.NnBinDefault.Trainer.Kind, "BcOutputMismatch.nn"); 1767RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.breastCancer, null, "OutputMismatch"); 1771path = DeleteOutputPath(TestLearners.NnBinDefault.Trainer.Kind, "BcNonBinData.nn"); 1778RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.iris, null, "NonBinData"); 1787Run_TrainTest(TestLearners.PCAAnomalyDefault, TestDatasets.mnistOneClass, extraSettings: new[] { "loader=text{sparse+}" }, digitsOfPrecision: 4); 1788Run_TrainTest(TestLearners.PCAAnomalyNoNorm, TestDatasets.mnistOneClass, extraSettings: new[] { "loader=text{sparse+}" }, digitsOfPrecision: 4); 1806Run_TrainTest(TestLearners.OneClassSvmLinear, TestDatasets.mnistOneClass, extraTag: "LinearKernel"); 1807Run_TrainTest(TestLearners.OneClassSvmPoly, TestDatasets.mnistOneClass, extraTag: "PolynomialKernel"); 1808Run_TrainTest(TestLearners.OneClassSvmRbf, TestDatasets.mnistOneClass, extraTag: "RbfKernel"); 1809Run_TrainTest(TestLearners.OneClassSvmSigmoid, TestDatasets.mnistOneClass, extraTag: "SigmoidKernel"); 1821Run_TrainTest(TestLearners.OneClassSvmLinear, TestDatasets.breastCancerOneClass, extraTag: "LinearKernel"); 1822Run_TrainTest(TestLearners.OneClassSvmPoly, TestDatasets.breastCancerOneClass, extraTag: "PolynomialKernel"); 1823Run_TrainTest(TestLearners.OneClassSvmRbf, TestDatasets.breastCancerOneClass, extraTag: "RbfKernel"); 1824Run_TrainTest(TestLearners.OneClassSvmSigmoid, TestDatasets.breastCancerOneClass, extraTag: "SigmoidKernel"); 2151var binaryPredictors = new[] { TestLearners.LDSVMDefault }; 2165var binaryPredictors = new[] { TestLearners.LDSVMNoBias }; 2179var binaryPredictors = new[] { TestLearners.FieldAwareFactorizationMachine }; 2195RunOneAllTests(TestLearners.MulticlassNaiveBayesClassifier, TestDatasets.breastCancerPipe);
Microsoft.ML.TestFramework (1)
TestCommandBase.cs (1)
912string extraArgs = $"tr=lr{{{TestLearnersBase.logisticRegression.Trainer.SubComponentSettings}}} strat=Strat threads- norm=Warn";