1 type derived from SubComponent
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
230public class SubComponent<TRes, TSig> : SubComponent
134 instantiations of SubComponent
Microsoft.ML.Predictor.Tests (18)
TestPredictors.cs (18)
213Trainer = new SubComponent("MulticlassLogisticRegression", "ot=1e-3 nt=1"), 613Trainer = new SubComponent("LightGBMRank", 2202var pa = new PredictorAndArgs(new SubComponent("WeightedEnsembleMulticlass", "bp=mlr{t-} nm=20 st=BootstrapSelector{} tp=-"), "WE-Bootstrap"); 2211var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 tp=-"), "WE-Default"); 2219var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "bp=AvgPer nm=3 tp=-"), "WE-AvgPer"); 2227var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "bp=svm bp=ap nm=20 tp=-"), "WE-Hetero"); 2235var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 oc=Voting tp=-"), "WE-Voting"); 2243var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=5 oc=Stacking{bp=ap} tp=-"), "WE-StackingAP"); 2251var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 oc=Average tp=-"), "WE-Average"); 2259var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 pt=BestPerformanceSelector tp=-"), "WE-BestPerf"); 2267var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 pt=BestDiverseSelector tp=-"), "WE-Diverse"); 2275var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=5 st=RandomPartitionSelector tp=-"), "WE-RandomPartition"); 2283var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 st=AllInstanceSelector tp=-"), "WE-All"); 2291var pa = new PredictorAndArgs(new SubComponent("WeightedEnsemble", "nm=20 st=AllInstanceSelector{fs=RandomFeatureSelector} tp=-"), "WE-RandomFeature"); 2299var pa = new PredictorAndArgs(new SubComponent("WeightedEnsembleMulticlass", "bp=mlr{t-} nm=5 oc=MultiAverage tp=-"), "WE-Average"); 2307var pa = new PredictorAndArgs(new SubComponent("WeightedEnsembleMulticlass", "bp=mlr{t-} nm=5 oc=MultiVoting tp=-"), "WE-Voting"); 2315var pa = new PredictorAndArgs(new SubComponent("WeightedEnsembleMulticlass", "bp=mlr{t-} nm=5 oc=MultiStacking{bp=mlr{t-}} tp=-"), "WE-Stacking"); 2323var pa = new PredictorAndArgs(new SubComponent("WeightedEnsembleMulticlass", "bp=SDCAMC{nt=1} nm=5 oc=MultiAverage tp=-"), "WE-SDCA-Average");
Microsoft.ML.TestFramework (116)
Learners.cs (115)
49Trainer = new SubComponent("PriorPredictor"), 56Trainer = new SubComponent("SDCA", "maxIterations=5 checkFreq=9 nt=1"), 63Trainer = new SubComponent("SDCA", "l2=1e-06 l1=0.5 maxIterations=5 checkFreq=9 nt=1"), 70Trainer = new SubComponent("SDCA", "l2=1e-06 loss=SmoothedHinge l1=0.5 maxIterations=5 checkFreq=9 nt=1"), 77Trainer = new SubComponent("SGD", "maxIterations=2 checkFreq=9 nt=1"), 84Trainer = new SubComponent("SGD", "loss=Hinge maxIterations=2 checkFreq=9 nt=1"), 91Trainer = new SubComponent("SDCAMC", "maxIterations=20 checkFreq=0 nt=1"), 98Trainer = new SubComponent("SDCAMC", "l2=1e-04 l1=0.5 maxIterations=20 checkFreq=0 nt=1"), 105Trainer = new SubComponent("SDCAMC", "l2=1e-04 loss=SmoothedHinge maxIterations=20 checkFreq=0 nt=1"), 112Trainer = new SubComponent("AveragedPerceptron", "lr=0.01 iter=100 numnorm=500 lazy+"), 117Trainer = new SubComponent("AveragedPerceptron", "lr=0.01 iter=100 lazy+"), 123Trainer = new SubComponent("AveragedPerceptron", "lr=0.01 iter=100 lazy+ reg=0.002"), 129Trainer = new SubComponent("OVA", "p=AvgPer{ lr=0.8 }"), 135Trainer = new SubComponent("OVA", "p=FastForest{ }"), 142Trainer = new SubComponent("PKPD", "p=AvgPer { lr=0.8 }"), 149Trainer = new SubComponent("AveragedPerceptron"), 155Trainer = new SubComponent("AveragedPerceptron", "norm={}"), 161Trainer = new SubComponent("LinearSVM", "iter=100 lambda=0.03"), 167Trainer = new SubComponent("LinearSVM", "iter=100 lambda=0.03 norm={}"), 173Trainer = new SubComponent("LinearSVM", "iter=1 lambda=0.03 norm={}"), 179Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 norm={} nt=1"), 185Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 nt=1"), 193Trainer = new SubComponent("SymSGD", "nt=1"), 201Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-4 nt=1 nn=+"), 210Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 nt=1"), 218Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 nt=1"), 227Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 sgd=0.1 nt=1"), 234Trainer = new SubComponent("LogisticRegression", "l1=1.0 l2=0.1 ot=1e-3 nt=1"), 243Trainer = new SubComponent("MulticlassLogisticRegression", "l1=0.001 l2=0.1 ot=1e-3 nt=1"), 251Trainer = new SubComponent("MulticlassLogisticRegression", "l1=0.001 l2=0.1 ot=1e-3 nt=1 nn=+"), 260Trainer = new SubComponent("MulticlassLogisticRegression", "nt=1"), 267Trainer = new SubComponent("FastForestClassification", "nl=5 mil=10 iter=10"), 274Trainer = new SubComponent("FastRank", "nl=5 mil=5 lr=0.25 iter=20"), 281Trainer = new SubComponent("FastRank", "nl=5 mil=5 lr=0.25 iter=20 pruning=+"), 288Trainer = new SubComponent("FastRank", "nl=5 mil=20 lr=0.25 iter=20"), 294Trainer = new SubComponent("FastTreeBinaryClassification", "nl=5 mil=5 lr=0.25 iter=20 mb=255"), 301Trainer = new SubComponent("LightGBMBinary", "nt=1 nl=5 mil=5 lr=0.25 iter=20 mb=255"), 308Trainer = new SubComponent("LightGBM", "nt=1 iter=10 v=+ booster=goss lr=0.2 mil=10 nl=20"), 315Trainer = new SubComponent("LightGBM", "nt=1 iter=10 booster=dart lr=0.2 mil=10 nl=20"), 322Trainer = new SubComponent("LightGBMMC", "nt=1 iter=10 v=- lr=0.2 mil=10 nl=20"), 329Trainer = new SubComponent("LightGBMR", "nt=1 iter=50 v=+ booster=gbdt{l1=0.2 l2=0.2} lr=0.2 mil=10 nl=20"), 336Trainer = new SubComponent("LightGBMR", "nt=1 iter=50 em=MeanAbsoluteError v=+ lr=0.2 mil=10 nl=20"), 343Trainer = new SubComponent("LightGBMR", "nt=1 iter=50 em=RootMeanSquaredError v=+ lr=0.2 mil=10 nl=20"), 350Trainer = new SubComponent("FastTreeBinaryClassification", "cat=+ nl=5 mil=5 lr=0.25 iter=20 mb=255"), 357Trainer = new SubComponent("FastTreeBinaryClassification", "cat=+ nl=5 mil=5 lr=0.25 iter=20 mb=255 dt+"), 364Trainer = new SubComponent("FastTreeBinaryClassification", "mil=10000 iter=5"), 371Trainer = new SubComponent("FastTreeBinaryClassification", "nl=5 mil=5 lr=0.25 iter=20 mb=255 dt+"), 378Trainer = new SubComponent("FastTreeBinaryClassification", "nl=5 mil=5 tdrop=0.5 lr=0.25 iter=20 mb=255"), 385Trainer = new SubComponent("FastTreeBinaryClassification", "nl=5 mil=5 bsr+ lr=0.25 iter=20 mb=255"), 392Trainer = new SubComponent("FastTreeRanking", "iter=10 nl=10 mil=32 lr=0.30 mb=255"), 399Trainer = new SubComponent("FastTreeRanking", "iter=10 nl=10 mil=32 lr=0.30 mb=255 gains=0,2,3,5,6"), 407Trainer = new SubComponent("FastTreeRegression", "nl=5 mil=5 lr=0.25 iter=20 mb=255"), 414Trainer = new SubComponent("FastTreeRegression", "cat=+ nl=5 mil=5 lr=0.25 iter=20 mb=255"), 421Trainer = new SubComponent("FastTreeRegression", "nl=30 mil=30 lr=0.25 iter=10 mb=255"), 428Trainer = new SubComponent("FastTreeRegression", "nl=5 mil=5 tdrop=0.5 lr=0.25 iter=20 mb=255"), 435Trainer = new SubComponent("FastTreeTweedieRegression", "nl=5 mil=5 lr=0.25 iter=10 mb=255 index=1.5"), 443Trainer = new SubComponent("RegressionGamTrainer", ""), 450Trainer = new SubComponent("BinaryClassificationGamTrainer", ""), 457Trainer = new SubComponent("BinaryClassificationGamTrainer", "dt+"), 465Trainer = new SubComponent("FastForestRegression", "nl=5 mil=5 iter=20"), 466Scorer = new SubComponent("QuantileRegression", "quantiles = 0.25,0.5,0.75"), 474Trainer = new SubComponent("FastForestRegression", "nl=5 mil=5 iter=20"), 480Trainer = new SubComponent("FastRankRegression", "nl=5 mil=5 lr=0.25 iter=20"), 486Trainer = new SubComponent("FastRankRegression", "nl=5 mil=20 lr=0.25 iter=20"), 492Trainer = new SubComponent("OGD", "iter=100"), 498Trainer = new SubComponent("OLS"), 504Trainer = new SubComponent("OLS"), 511Trainer = new SubComponent("OLS", "l2=0.1"), 518Trainer = new SubComponent("SDCAR", "nt=1"), 524Trainer = new SubComponent("SDCAR", "l2=0.01 l1=0 iter=10 checkFreq=-1 nt=1"), 530Trainer = new SubComponent("SDCAR", "l2=0.1 l1=0 iter=10 checkFreq=-1 nt=1"), 536Trainer = new SubComponent("FastRankRanking", "iter=10 nl=10 mil=32 lr=0.30"), 542Trainer = new SubComponent("FastRankRanking", "iter=10 nl=10 mil=32 lr=0.30"), 548Trainer = new SubComponent("PoissonRegression", "l1=1.0 ot=1e-2 nt=1"), 549Tester = new SubComponent("Regression", "loss=PoissonLoss"), 556Trainer = new SubComponent("PoissonRegression", "l1=1.0 ot=1e-2 nt=1 nn=+"), 557Tester = new SubComponent("Regression", "loss=PoissonLoss"), 565Trainer = new SubComponent("BinaryNeuralNetwork", "accel=sse"), 571Trainer = new SubComponent("BinaryNeuralNetwork", "accel=sse"), 578Trainer = new SubComponent("BinaryNeuralNetwork", "momentum=0.5 accel=sse"), 586Trainer = new SubComponent("BinaryNeuralNetwork", "filename={" + path + "} lr=0.01 accel=sse"), 596Trainer = new SubComponent("BinaryNeuralNetwork", "net=" + quoted + " accel=sse"), 605Trainer = new SubComponent("MultiClassNeuralNetwork", string.Format("lr=0.1 accel=sse output={0}", numOutputs)), 614Trainer = new SubComponent("MultiClassNeuralNetwork", "filename={" + path + "} lr=0.1 accel=sse"), 623Trainer = new SubComponent("MultiClassNeuralNetwork", "filename={" + path + "} lr=0.1 lred=0.9 lredfreq=5 lrederror=0.02 accel=sse"), 632Trainer = new SubComponent("MultiClassNeuralNetwork", 644Trainer = new SubComponent("DssmNet", settings), 645Scorer = new SubComponent("MultiClass"), 652Trainer = new SubComponent("OneClassSVM"), 657Trainer = new SubComponent("OneClassSVM", "ker=SigmoidKernel {g=0.005}"), 662Trainer = new SubComponent("OneClassSVM", "ker=LinearKernel"), 667Trainer = new SubComponent("OneClassSVM", "ker=PolynomialKernel {b=1}"), 672Trainer = new SubComponent("pcaAnomaly"), 678Trainer = new SubComponent("pcaAnomaly"), 685Trainer = new SubComponent("LdSvm", "iter=1000"), 691Trainer = new SubComponent("LdSvm", "iter=1000 bias=-"), 697Trainer = new SubComponent("KM", "nt=1"), 703Trainer = new SubComponent("KM", "norm={} nt=1"), 709Trainer = new SubComponent("KM", "nt=1 init=KMeansPlusPlus"), 715Trainer = new SubComponent("KM", "nt=1 init=Random"), 724Trainer = new SubComponent(BinaryTrembleTrainer, "inp=SingleFeaturePredictor inp=LogisticRegression{maxiter=10 quiet=+ t-} lnp=LogisticRegression{maxiter=100 quiet=+ t-} nl=8"), 730Trainer = new SubComponent(BinaryTrembleTrainer, ""), 736Trainer = new SubComponent(BinaryTrembleTrainer, "prune=+"), 742Trainer = new SubComponent(BinaryTrembleTrainer, "imp=Gini"), 748Trainer = new SubComponent(BinaryTrembleTrainer, "mil=2 inp=SingleFeaturePredictor{nb=FIFTEEN ff=0.7} nl=40"), 754Trainer = new SubComponent(BinaryTrembleTrainer, "mil=2 inp=SingleFeaturePredictor{nb=FIFTEEN ff=0.7} nl=40 rewt=+"), 760Trainer = new SubComponent(MulticlassTrembleTrainer, "inp=SingleFeaturePredictor inp=LogisticRegression{maxiter=10 quiet=+ t-} lnp=MulticlassLogisticRegression{maxiter=100 quiet=+ t-} nl=8"), 766Trainer = new SubComponent(MulticlassTrembleTrainer, "nl=20"), 772Trainer = new SubComponent(MulticlassTrembleTrainer, "nl=20 prune=+"), 778Trainer = new SubComponent(MulticlassTrembleTrainer, "nl=20 imp=Gini"), 784Trainer = new SubComponent(MulticlassTrembleTrainer, "mil=2 inp=SingleFeaturePredictor{nb=FIFTEEN ff=0.7} nl=40"), 792Trainer = new SubComponent(BinaryBPMTrainer), 798Trainer = new SubComponent(BinaryBPMTrainer, "bias=-"), 805Trainer = new SubComponent("MultiClassNaiveBayes", ""), 811Trainer = new SubComponent("FieldAwareFactorizationMachine", "d=5 shuf- norm-"),
SubComponent.cs (1)
192return new SubComponent(kind, args);
16 references to SubComponent
Microsoft.ML.TestFramework (16)
Learners.cs (4)
16public SubComponent Trainer { get; set; } 17public SubComponent Scorer { get; set; } 18public SubComponent Tester { get; set; } 29public PredictorAndArgs(SubComponent trainer, string tag = null)
SubComponent.cs (12)
21public class SubComponent : IEquatable<SubComponent> 108public bool Equals(SubComponent other) 141SubComponent other = obj as SubComponent; 184internal static SubComponent Parse(string str) 207public static SubComponent Create(Type type) 209Contracts.Check(type != null && typeof(SubComponent).IsAssignableFrom(type)); 210return (SubComponent)Activator.CreateInstance(type); 213public static SubComponent Clone(SubComponent src, Type type = null) 218var dst = Create(type ?? src.GetType()); 260public static bool IsGood(this SubComponent src)