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