60 implementations of CreateComponent
Microsoft.ML.Core (2)
CommandLine\CmdParser.cs (1)
2375
public TComponent
CreateComponent
(IHostEnvironment env)
ComponentModel\ComponentFactory.cs (1)
103
public TComponent
CreateComponent
(IHostEnvironment env)
Microsoft.ML.Data (15)
Prediction\Calibrator.cs (4)
1056
public ICalibratorTrainer
CreateComponent
(IHostEnvironment env)
1465
public ICalibratorTrainer
CreateComponent
(IHostEnvironment env)
1643
public ICalibratorTrainer
CreateComponent
(IHostEnvironment env)
1840
public ICalibratorTrainer
CreateComponent
(IHostEnvironment env)
Utils\LossFunctions.cs (11)
103
public ISupportSdcaClassificationLoss
CreateComponent
(IHostEnvironment env) => new LogLoss();
105
IClassificationLoss IComponentFactory<IClassificationLoss>.
CreateComponent
(IHostEnvironment env) => new LogLoss();
215
public ISupportSdcaClassificationLoss
CreateComponent
(IHostEnvironment env) => new HingeLoss(this);
217
IClassificationLoss IComponentFactory<IClassificationLoss>.
CreateComponent
(IHostEnvironment env) => new HingeLoss(this);
314
public ISupportSdcaClassificationLoss
CreateComponent
(IHostEnvironment env) => new SmoothedHingeLoss(env, this);
316
IClassificationLoss IComponentFactory<IClassificationLoss>.
CreateComponent
(IHostEnvironment env) => new SmoothedHingeLoss(env, this);
430
public IClassificationLoss
CreateComponent
(IHostEnvironment env) => new ExpLoss(this);
465
public ISupportSdcaRegressionLoss
CreateComponent
(IHostEnvironment env) => new SquaredLoss();
467
IRegressionLoss IComponentFactory<IRegressionLoss>.
CreateComponent
(IHostEnvironment env) => new SquaredLoss();
522
public IRegressionLoss
CreateComponent
(IHostEnvironment env) => new PoissonLoss();
587
public IRegressionLoss
CreateComponent
(IHostEnvironment env) => new TweedieLoss(this);
Microsoft.ML.Ensemble (30)
EntryPoints\DiversityMeasure.cs (3)
18
public IBinaryDiversityMeasure
CreateComponent
(IHostEnvironment env) => new DisagreementDiversityMeasure();
24
public IRegressionDiversityMeasure
CreateComponent
(IHostEnvironment env) => new RegressionDisagreementDiversityMeasure();
30
public IMulticlassDiversityMeasure
CreateComponent
(IHostEnvironment env) => new MultiDisagreementDiversityMeasure();
EntryPoints\FeatureSelector.cs (1)
17
IFeatureSelector IComponentFactory<IFeatureSelector>.
CreateComponent
(IHostEnvironment env) => new AllFeatureSelector(env);
EntryPoints\OutputCombiner.cs (6)
26
public IRegressionOutputCombiner
CreateComponent
(IHostEnvironment env) => new Average(env);
28
IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.
CreateComponent
(IHostEnvironment env) => new Average(env);
34
public IRegressionOutputCombiner
CreateComponent
(IHostEnvironment env) => new Median(env);
36
IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.
CreateComponent
(IHostEnvironment env) => new Median(env);
42
IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.
CreateComponent
(IHostEnvironment env) => new Voting(env);
48
public IMulticlassOutputCombiner
CreateComponent
(IHostEnvironment env) => new MultiVoting(env);
EntryPoints\SubModelSelector.cs (3)
23
IBinarySubModelSelector IComponentFactory<IBinarySubModelSelector>.
CreateComponent
(IHostEnvironment env) => new AllSelector(env);
25
IRegressionSubModelSelector IComponentFactory<IRegressionSubModelSelector>.
CreateComponent
(IHostEnvironment env) => new AllSelector(env);
31
IMulticlassSubModelSelector IComponentFactory<IMulticlassSubModelSelector>.
CreateComponent
(IHostEnvironment env) => new AllSelectorMulticlass(env);
OutputCombiners\MultiAverage.cs (1)
38
public IMulticlassOutputCombiner
CreateComponent
(IHostEnvironment env) => new MultiAverage(env, this);
OutputCombiners\MultiMedian.cs (1)
41
public IMulticlassOutputCombiner
CreateComponent
(IHostEnvironment env) => new MultiMedian(env, this);
OutputCombiners\MultiStacking.cs (1)
52
public IMulticlassOutputCombiner
CreateComponent
(IHostEnvironment env) => new MultiStacking(env, this);
OutputCombiners\MultiWeightedAverage.cs (1)
45
IMulticlassOutputCombiner IComponentFactory<IMulticlassOutputCombiner>.
CreateComponent
(IHostEnvironment env) => new MultiWeightedAverage(env, this);
OutputCombiners\RegressionStacking.cs (1)
50
public IRegressionOutputCombiner
CreateComponent
(IHostEnvironment env) => new RegressionStacking(env, this);
OutputCombiners\Stacking.cs (1)
49
public IBinaryOutputCombiner
CreateComponent
(IHostEnvironment env) => new Stacking(env, this);
OutputCombiners\WeightedAverage.cs (1)
46
public IBinaryOutputCombiner
CreateComponent
(IHostEnvironment env) => new WeightedAverage(env, this);
Selector\FeatureSelector\RandomFeatureSelector.cs (1)
30
public IFeatureSelector
CreateComponent
(IHostEnvironment env) => new RandomFeatureSelector(env, this);
Selector\SubModelSelector\BestDiverseSelectorBinary.cs (1)
32
public IBinarySubModelSelector
CreateComponent
(IHostEnvironment env) => new BestDiverseSelectorBinary(env, this);
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (1)
32
public IMulticlassSubModelSelector
CreateComponent
(IHostEnvironment env) => new BestDiverseSelectorMulticlass(env, this);
Selector\SubModelSelector\BestDiverseSelectorRegression.cs (1)
31
public IRegressionSubModelSelector
CreateComponent
(IHostEnvironment env) => new BestDiverseSelectorRegression(env, this);
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (1)
28
public IRegressionSubModelSelector
CreateComponent
(IHostEnvironment env) => new BestPerformanceRegressionSelector(env, this);
Selector\SubModelSelector\BestPerformanceSelector.cs (1)
28
public IBinarySubModelSelector
CreateComponent
(IHostEnvironment env) => new BestPerformanceSelector(env, this);
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (1)
28
IMulticlassSubModelSelector IComponentFactory<IMulticlassSubModelSelector>.
CreateComponent
(IHostEnvironment env) => new BestPerformanceSelectorMulticlass(env, this);
Selector\SubsetSelector\AllInstanceSelector.cs (1)
28
public ISubsetSelector
CreateComponent
(IHostEnvironment env) => new AllInstanceSelector(env, this);
Selector\SubsetSelector\BootstrapSelector.cs (1)
38
public ISubsetSelector
CreateComponent
(IHostEnvironment env) => new BootstrapSelector(env, this);
Selector\SubsetSelector\RandomPartitionSelector.cs (1)
30
public ISubsetSelector
CreateComponent
(IHostEnvironment env) => new RandomPartitionSelector(env, this);
Microsoft.ML.FastTree (5)
FastTreeArguments.cs (4)
107
ITrainer IComponentFactory<ITrainer>.
CreateComponent
(IHostEnvironment env) => new FastTreeBinaryTrainer(env, this);
151
ITrainer IComponentFactory<ITrainer>.
CreateComponent
(IHostEnvironment env) => new FastTreeRegressionTrainer(env, this);
210
ITrainer IComponentFactory<ITrainer>.
CreateComponent
(IHostEnvironment env) => new FastTreeTweedieTrainer(env, this);
308
ITrainer IComponentFactory<ITrainer>.
CreateComponent
(IHostEnvironment env) => new FastTreeRankingTrainer(env, this);
Training\Parallel\SingleTrainer.cs (1)
100
public IParallelTraining
CreateComponent
(IHostEnvironment env) => new SingleTrainer();
Microsoft.ML.LightGbm (2)
LightGbmArguments.cs (1)
168
BoosterParameterBase IComponentFactory<BoosterParameterBase>.
CreateComponent
(IHostEnvironment env)
Parallel\SingleTrainer.cs (1)
53
public IParallel
CreateComponent
(IHostEnvironment env) => new SingleTrainer();
Microsoft.ML.Parquet (2)
PartitionedPathParser.cs (2)
87
public IPartitionedPathParser
CreateComponent
(IHostEnvironment env) => new SimplePartitionedPathParser(env, this);
201
public IPartitionedPathParser
CreateComponent
(IHostEnvironment env) => new ParquetPartitionedPathParser();
Microsoft.ML.Transforms (4)
Dracula\CMCountTable.cs (1)
188
public CountTableBuilderBase
CreateComponent
(IHostEnvironment env)
Dracula\DictCountTable.cs (1)
145
public CountTableBuilderBase
CreateComponent
(IHostEnvironment env)
FourierDistributionSampler.cs (2)
87
public KernelBase
CreateComponent
(IHostEnvironment env) => new GaussianKernel(env, this);
208
public KernelBase
CreateComponent
(IHostEnvironment env) => new LaplacianKernel(env, this);
60 references to CreateComponent
Microsoft.ML.Data (16)
Commands\CrossValidationCommand.cs (3)
204
var eval = evaluator?.
CreateComponent
(Host) ??
483
ITrainer trainer = _trainer.
CreateComponent
(host);
550
var eval = _evaluator?.
CreateComponent
(host) ??
Commands\EvaluateCommand.cs (2)
163
IMamlEvaluator eval = args.Evaluator?.
CreateComponent
(env) ??
241
var evaluator = ImplOptions.Evaluator?.
CreateComponent
(Host) ??
Commands\SaveDataCommand.cs (2)
82
saver = ImplOptions.Saver.
CreateComponent
(Host);
142
saver = ImplOptions.Saver.
CreateComponent
(Host);
Commands\ScoreCommand.cs (1)
155
writer = ImplOptions.Saver.
CreateComponent
(Host);
Commands\TestCommand.cs (1)
119
var evaluator = ImplOptions.Evaluator?.
CreateComponent
(Host) ??
Commands\TrainCommand.cs (2)
142
ITrainer trainer = _trainer.
CreateComponent
(Host);
281
var caliTrainer = calibrator?.
CreateComponent
(env);
Commands\TrainTestCommand.cs (2)
125
ITrainer trainer = ImplOptions.Trainer.
CreateComponent
(Host);
208
var evaluator = ImplOptions.Evaluator?.
CreateComponent
(Host) ??
Evaluators\RegressionEvaluatorBase.cs (1)
36
LossFunction = args.LossFunction.
CreateComponent
(env);
Transforms\TrainAndScoreTransformer.cs (2)
210
return Create(env, args, args.Trainer.
CreateComponent
(env), input, null);
223
return Create(env, args, args.Trainer.
CreateComponent
(env), input, mapperFactory);
Microsoft.ML.Ensemble (14)
OutputCombiners\BaseStacking.cs (1)
144
var trainer = BasePredictorType.
CreateComponent
(host);
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
34
return _diversityMetricType.
CreateComponent
(Host);
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
40
FeatureSelector = BaseSubsetSelectorOptions.FeatureSelector.
CreateComponent
(Host);
Trainer\Binary\EnsembleTrainer.cs (3)
70
SubModelSelector = args.SubModelSelectorType.
CreateComponent
(Host);
72
Combiner = args.OutputCombiner.
CreateComponent
(Host);
94
var combiner = _outputCombiner.
CreateComponent
(Host);
Trainer\EnsembleTrainerBase.cs (2)
95
_subsetSelector = Args.SamplingType.
CreateComponent
(Host);
99
Trainers[i] = predictorFactories[i % predictorFactories.Length].
CreateComponent
(Host);
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (3)
77
SubModelSelector = args.SubModelSelectorType.
CreateComponent
(Host);
79
Combiner = args.OutputCombiner.
CreateComponent
(Host);
100
var combiner = _outputCombiner.
CreateComponent
(Host);
Trainer\Regression\RegressionEnsembleTrainer.cs (3)
65
SubModelSelector = args.SubModelSelectorType.
CreateComponent
(Host);
67
Combiner = args.OutputCombiner.
CreateComponent
(Host);
88
var combiner = _outputCombiner.
CreateComponent
(Host);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
180
ParallelTraining = FastTreeTrainerOptions.ParallelTrainer != null ? FastTreeTrainerOptions.ParallelTrainer.
CreateComponent
(env) : new SingleTrainer();
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
355
ParallelTraining = LightGbmTrainerOptions.ParallelTrainer != null ? LightGbmTrainerOptions.ParallelTrainer.
CreateComponent
(Host) : new SingleTrainer();
Microsoft.ML.Maml (1)
ChainCommand.cs (1)
65
var cmd = sub.
CreateComponent
(_host);
Microsoft.ML.Predictor.Tests (2)
CmdLine\CmdLineReverseTest.cs (2)
91
var calibrator = ((IComponentFactory<ICalibratorTrainer>)factory).
CreateComponent
(ml);
97
var calibrator = ((IComponentFactory<ICalibratorTrainer>)factory).
CreateComponent
(ml);
Microsoft.ML.StandardTrainers (11)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
77
Calibrator = options.Calibrator.
CreateComponent
(Host);
87
Args.PredictorType.
CreateComponent
(Host) :
Standard\Online\AveragedPerceptron.cs (1)
156
LossFunction = _args.LossFunction ?? _args.LossFunctionFactory.
CreateComponent
(env);
Standard\Online\OnlineGradientDescent.cs (1)
163
LossFunction = options.LossFunction ?? options.LossFunctionFactory.
CreateComponent
(env);
Standard\SdcaBinary.cs (3)
1715
: base(env, options, options.LossFunction ?? options.LossFunctionFactory.
CreateComponent
(env))
1773
: base(env, options, options.LossFunction.
CreateComponent
(env), !(options.LossFunction is LogLossFactory))
2431
: base(env, options, options.LossFunction.
CreateComponent
(env), !(options.LossFunction is LogLossFactory))
Standard\SdcaMulticlass.cs (2)
139
_loss = loss ?? SdcaTrainerOptions.InternalLoss ?? SdcaTrainerOptions.LossFunctionFactory.
CreateComponent
(env);
150
_loss = options.InternalLoss ?? options.LossFunctionFactory.
CreateComponent
(env);
Standard\SdcaRegression.cs (2)
124
_loss = loss ?? SdcaTrainerOptions.LossFunction ?? SdcaTrainerOptions.LossFunctionFactory.
CreateComponent
(env);
135
_loss = options.LossFunction ?? options.LossFunctionFactory.
CreateComponent
(env);
Microsoft.ML.Sweeper (8)
Algorithms\Grid.cs (1)
53
SweepParameters = options.SweptParameters.Select(p => p.
CreateComponent
(Host)).ToArray();
Algorithms\KdoSweeper.cs (1)
101
_sweepParameters = options.SweptParameters.Select(p => p.
CreateComponent
(_host)).ToArray();
Algorithms\NelderMead.cs (1)
103
var parameter = sweptParameter.
CreateComponent
(env);
Algorithms\SmacSweeper.cs (1)
83
_sweepParameters = options.SweptParameters.Select(p => p.
CreateComponent
(_host)).ToArray();
AsyncSweeper.cs (1)
202
_baseSweeper = options.Sweeper.
CreateComponent
(_host);
ConfigRunner.cs (1)
75
ResultProcessor = options.ResultProcessor.
CreateComponent
(Host);
SweepCommand.cs (2)
76
_runner = args.Runner.
CreateComponent
(_host);
77
_sweeper = args.Sweeper.
CreateComponent
(_host);
Microsoft.ML.Transforms (6)
Dracula\CountTableTransformer.cs (2)
488
builder.
CreateComponent
(env),
511
estimator = new CountTableEstimator(env, options.LabelColumn, builder.
CreateComponent
(env), columnOptions);
Dracula\CountTargetEncodingTransformer.cs (2)
195
_countTableEstimator = new CountTableEstimator(_host, options.LabelColumn, builder.
CreateComponent
(_host), columns);
208
builder.
CreateComponent
(_host),
LearnerFeatureSelection.cs (1)
276
ITrainer trainer = options.Filter.
CreateComponent
(host);
RandomFourierFeaturizing.cs (1)
430
(item.MatrixGenerator ?? options.MatrixGenerator).
CreateComponent
(env),