21 references to TaskType
Microsoft.ML.Tests (21)
FeatureContributionTests.cs (21)
110TestFeatureContribution(ML.Ranking.Trainers.FastTree(), GetSparseDataset(TaskType.Ranking, 100), "FastTreeRanking"); 116TestFeatureContribution(ML.Ranking.Trainers.LightGbm(), GetSparseDataset(TaskType.Ranking, 100), "LightGbmRanking"); 123TestFeatureContribution(ML.BinaryClassification.Trainers.AveragedPerceptron(), GetSparseDataset(TaskType.BinaryClassification, 100), "AveragePerceptronBinary"); 129TestFeatureContribution(ML.BinaryClassification.Trainers.LinearSvm(), GetSparseDataset(TaskType.BinaryClassification, 100), "SVMBinary"); 135TestFeatureContribution(ML.BinaryClassification.Trainers.LbfgsLogisticRegression(), GetSparseDataset(TaskType.BinaryClassification, 100), "LogisticRegressionBinary", 3); 141TestFeatureContribution(ML.BinaryClassification.Trainers.FastForest(), GetSparseDataset(TaskType.BinaryClassification, 100), "FastForestBinary"); 147TestFeatureContribution(ML.BinaryClassification.Trainers.FastTree(), GetSparseDataset(TaskType.BinaryClassification, 100), "FastTreeBinary"); 153TestFeatureContribution(ML.BinaryClassification.Trainers.LightGbm(), GetSparseDataset(TaskType.BinaryClassification, 100), "LightGbmBinary"); 160new SdcaNonCalibratedBinaryTrainer.Options { NumberOfThreads = 1, }), GetSparseDataset(TaskType.BinaryClassification, 100), "SDCABinary", precision: 5); 171GetSparseDataset(TaskType.BinaryClassification, 100), "SGDBinary"); 182GetSparseDataset(TaskType.BinaryClassification, 100), "SSGDBinary", 4); 188TestFeatureContribution(ML.BinaryClassification.Trainers.Gam(), GetSparseDataset(TaskType.BinaryClassification, 100), "GAMBinary"); 257private IDataView GetSparseDataset(TaskType task = TaskType.Regression, int numberOfInstances = 1000) 298if (task == TaskType.BinaryClassification || 299task == TaskType.MulticlassClassification) 301else if (task == TaskType.Ranking) 310if (task == TaskType.Ranking) 317if (task == TaskType.BinaryClassification) 320else if (task == TaskType.MulticlassClassification) 323else if (task == TaskType.Ranking)