22 interfaces inheriting from IComponentFactory
Microsoft.ML.Data (5)
Dirty\ILoss.cs (2)
30internal interface ISupportRegressionLossFactory : IComponentFactory<IRegressionLoss> 40internal interface ISupportClassificationLossFactory : IComponentFactory<IClassificationLoss>
Prediction\Calibrator.cs (1)
94internal interface ICalibratorTrainerFactory : IComponentFactory<ICalibratorTrainer>
Utils\LossFunctions.cs (2)
87internal interface ISupportSdcaClassificationLossFactory : IComponentFactory<ISupportSdcaClassificationLoss> 93internal interface ISupportSdcaRegressionLossFactory : IComponentFactory<ISupportSdcaRegressionLoss>
Microsoft.ML.Ensemble (11)
OutputCombiners\IOutputCombiner.cs (3)
51internal interface ISupportMulticlassOutputCombinerFactory : IComponentFactory<IMulticlassOutputCombiner> 56internal interface ISupportBinaryOutputCombinerFactory : IComponentFactory<IBinaryOutputCombiner> 62internal interface ISupportRegressionOutputCombinerFactory : IComponentFactory<IRegressionOutputCombiner>
Selector\IDiversityMeasure.cs (3)
30internal interface ISupportBinaryDiversityMeasureFactory : IComponentFactory<IBinaryDiversityMeasure> 35internal interface ISupportRegressionDiversityMeasureFactory : IComponentFactory<IRegressionDiversityMeasure> 40internal interface ISupportMulticlassDiversityMeasureFactory : IComponentFactory<IMulticlassDiversityMeasure>
Selector\IFeatureSelector.cs (1)
20internal interface ISupportFeatureSelectorFactory : IComponentFactory<IFeatureSelector>
Selector\ISubModelSelector.cs (3)
38internal interface ISupportMulticlassSubModelSelectorFactory : IComponentFactory<IMulticlassSubModelSelector> 43internal interface ISupportBinarySubModelSelectorFactory : IComponentFactory<IBinarySubModelSelector> 49internal interface ISupportRegressionSubModelSelectorFactory : IComponentFactory<IRegressionSubModelSelector>
Selector\ISubsetSelector.cs (1)
24internal interface ISupportSubsetSelectorFactory : IComponentFactory<ISubsetSelector>
Microsoft.ML.FastTree (2)
FastTreeArguments.cs (1)
21internal interface IFastTreeTrainerFactory : IComponentFactory<ITrainer>
Training\Parallel\IParallelTraining.cs (1)
152internal interface ISupportParallelTraining : IComponentFactory<IParallelTraining>
Microsoft.ML.LightGbm (2)
LightGbmArguments.cs (1)
30internal interface IBoosterParameterFactory : IComponentFactory<BoosterParameterBase>
Parallel\IParallel.cs (1)
72internal interface ISupportParallel : IComponentFactory<IParallel>
Microsoft.ML.Parquet (1)
PartitionedPathParser.cs (1)
64internal interface IPartitionedPathParserFactory : IComponentFactory<IPartitionedPathParser>
Microsoft.ML.Transforms (1)
Dracula\CountTableBuilder.cs (1)
11internal interface ICountTableBuilderFactory : IComponentFactory<CountTableBuilderBase>
4 implementations of IComponentFactory
Microsoft.ML.Core (2)
CommandLine\CmdParser.cs (1)
2367private class ComponentFactory<TComponent> : ComponentFactory, IComponentFactory<TComponent>
ComponentModel\ComponentFactory.cs (1)
94private sealed class SimpleComponentFactory<TComponent> : IComponentFactory<TComponent>
Microsoft.ML.Transforms (2)
FourierDistributionSampler.cs (2)
82internal sealed class Options : IComponentFactory<KernelBase> 203internal sealed class Options : IComponentFactory<KernelBase>
110 references to IComponentFactory
Microsoft.ML.Core (1)
ComponentModel\ComponentFactory.cs (1)
58public static IComponentFactory<TComponent> CreateFromFunction<TComponent>(Func<IHostEnvironment, TComponent> factory)
Microsoft.ML.Data (32)
Commands\CrossValidationCommand.cs (8)
31public IComponentFactory<ITrainer> Trainer; 37public IComponentFactory<IMamlEvaluator> Evaluator; 84public IComponentFactory<ICalibratorTrainer> Calibrator = new PlattCalibratorTrainerFactory(); 185var evaluator = ImplOptions.Evaluator; 351private readonly IComponentFactory<ITrainer> _trainer; 353private readonly IComponentFactory<IMamlEvaluator> _evaluator; 354private readonly IComponentFactory<ICalibratorTrainer> _calibrator; 393IComponentFactory<IMamlEvaluator> evaluator,
Commands\EvaluateCommand.cs (2)
140public IComponentFactory<IMamlEvaluator> Evaluator; 193public IComponentFactory<IMamlEvaluator> Evaluator;
Commands\SaveDataCommand.cs (2)
31public IComponentFactory<IDataSaver> Saver; 108public IComponentFactory<IDataSaver> Saver;
Commands\ScoreCommand.cs (1)
61public IComponentFactory<IDataSaver> Saver;
Commands\TestCommand.cs (1)
51public IComponentFactory<IMamlEvaluator> Evaluator;
Commands\TrainCommand.cs (7)
66public IComponentFactory<ITrainer> Trainer; 78public IComponentFactory<ICalibratorTrainer> Calibrator = new PlattCalibratorTrainerFactory(); 89private readonly IComponentFactory<ITrainer> _trainer; 211public static void CheckTrainer(IExceptionContext ectx, IComponentFactory<ITrainer> trainer, string dataFile) 247IComponentFactory<ICalibratorTrainer> calibrator, int maxCalibrationExamples) 253IComponentFactory<ICalibratorTrainer> calibrator, int maxCalibrationExamples, bool? cacheData, IPredictor inputPredictor = null, RoleMappedData testData = null) 259IComponentFactory<ICalibratorTrainer> calibrator, int maxCalibrationExamples, bool? cacheData, IPredictor inputPredictor = null, RoleMappedData testData = null)
Commands\TrainTestCommand.cs (3)
29public IComponentFactory<ITrainer> Trainer; 35public IComponentFactory<IMamlEvaluator> Evaluator; 69public IComponentFactory<ICalibratorTrainer> Calibrator = new PlattCalibratorTrainerFactory();
DataLoadSave\Text\TextLoader.cs (1)
1294public IComponentFactory<ILegacyDataLoader> Loader;
Transforms\TrainAndScoreTransformer.cs (2)
150public IComponentFactory<ITrainer> Trainer; 153public IComponentFactory<ICalibratorTrainer> Calibrator = new PlattCalibratorTrainerFactory();
Utilities\ComponentCreation.cs (1)
246return CreateCore<TRes>(env, typeof(IComponentFactory<TRes>), signatureType, settings, out loadName, extraArgs);
Utils\LossFunctions.cs (4)
105IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new LogLoss(); 217IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new HingeLoss(this); 316IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new SmoothedHingeLoss(env, this); 467IRegressionLoss IComponentFactory<IRegressionLoss>.CreateComponent(IHostEnvironment env) => new SquaredLoss();
Microsoft.ML.Ensemble (26)
EntryPoints\FeatureSelector.cs (1)
17IFeatureSelector IComponentFactory<IFeatureSelector>.CreateComponent(IHostEnvironment env) => new AllFeatureSelector(env);
EntryPoints\OutputCombiner.cs (3)
28IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Average(env); 36IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Median(env); 42IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Voting(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\BaseStacking.cs (2)
25internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> GetPredictorFactory(); 28private protected readonly IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>> BasePredictorType;
OutputCombiners\MultiStacking.cs (2)
48public IComponentFactory<TVectorTrainer> BasePredictorType; 50internal override IComponentFactory<TVectorTrainer> GetPredictorFactory() => BasePredictorType;
OutputCombiners\MultiWeightedAverage.cs (1)
45IMulticlassOutputCombiner IComponentFactory<IMulticlassOutputCombiner>.CreateComponent(IHostEnvironment env) => new MultiWeightedAverage(env, this);
OutputCombiners\RegressionStacking.cs (2)
46public IComponentFactory<TScalarTrainer> BasePredictorType; 48internal override IComponentFactory<TScalarTrainer> GetPredictorFactory() => BasePredictorType;
OutputCombiners\Stacking.cs (2)
45public IComponentFactory<TScalarTrainer> BasePredictorType; 47internal override IComponentFactory<TScalarTrainer> GetPredictorFactory() => BasePredictorType;
Selector\SubModelSelector\BaseDiverseSelector.cs (2)
21private readonly IComponentFactory<IDiversityMeasure<TOutput>> _diversityMetricType; 25IComponentFactory<IDiversityMeasure<TOutput>> diversityMetricType)
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (1)
28IMulticlassSubModelSelector IComponentFactory<IMulticlassSubModelSelector>.CreateComponent(IHostEnvironment env) => new BestPerformanceSelectorMulticlass(env, this);
Trainer\Binary\EnsembleTrainer.cs (2)
52public IComponentFactory<TScalarTrainer>[] BasePredictors; 54internal override IComponentFactory<TScalarTrainer>[] GetPredictorFactories() => BasePredictors;
Trainer\EnsembleTrainerBase.cs (1)
53internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<IPredictorProducing<TOutput>>, IPredictorProducing<TOutput>>>[] GetPredictorFactories();
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (2)
53internal IComponentFactory<TVectorTrainer>[] BasePredictors; 55internal override IComponentFactory<TVectorTrainer>[] GetPredictorFactories() => BasePredictors;
Trainer\Regression\RegressionEnsembleTrainer.cs (2)
47public IComponentFactory<TScalarTrainer>[] BasePredictors; 49internal override IComponentFactory<TScalarTrainer>[] GetPredictorFactories() => BasePredictors;
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);
TreeEnsembleFeaturizer.cs (1)
540public IComponentFactory<ITrainer> Trainer;
Microsoft.ML.LightGbm (1)
LightGbmArguments.cs (1)
168BoosterParameterBase IComponentFactory<BoosterParameterBase>.CreateComponent(IHostEnvironment env)
Microsoft.ML.Maml (2)
ChainCommand.cs (2)
26public IComponentFactory<ICommand>[] Commands; 59var sub = _args.Commands[i];
Microsoft.ML.Predictor.Tests (16)
CmdLine\CmdLine.cs (6)
199public IComponentFactory<IDataSaver> sub = (IComponentFactory<IDataSaver>)CmdParser.CreateComponentFactory( 200typeof(IComponentFactory<IDataSaver>), 205public IComponentFactory<IDataSaver>[] subArray = null; 208public KeyValuePair<string, IComponentFactory<IDataSaver>>[] subTaggedArray = null; 245private static void AppendSubTaggedArray<T>(StringBuilder sb, KeyValuePair<string, IComponentFactory<T>>[] pairs)
CmdLine\CmdLineReverseTest.cs (10)
90var factory = CmdParser.CreateComponentFactory(typeof(IComponentFactory<ICalibratorTrainer>), typeof(SignatureCalibrator), cls.LoadNames[0]); 91var calibrator = ((IComponentFactory<ICalibratorTrainer>)factory).CreateComponent(ml); 96var factory = CmdParser.CreateComponentFactory(typeof(IComponentFactory<ICalibratorTrainer>), typeof(SignatureCalibrator), component.Aliases[0]); 97var calibrator = ((IComponentFactory<ICalibratorTrainer>)factory).CreateComponent(ml); 124public IComponentFactory<SimpleArg> sub1 = CreateComponentFactory("sub1", "settings1"); 127public IComponentFactory<SimpleArg> sub2 = CreateComponentFactory("sub2", "settings2"); 130public IComponentFactory<SimpleArg> sub3 = CreateComponentFactory("sub3", "settings3"); 198private static IComponentFactory<SimpleArg> CreateComponentFactory(string name, string settings) 200return (IComponentFactory<SimpleArg>)_createComponentFactoryMethod.Invoke(null, 203typeof(IComponentFactory<SimpleArg>),
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
452IComponentFactory<ITrainer> trainer;
Microsoft.ML.StandardTrainers (5)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
25internal IComponentFactory<TScalarTrainer> PredictorType; 28internal IComponentFactory<ICalibratorTrainer> Calibrator = new PlattCalibratorTrainerFactory();
Standard\Online\AveragedLinear.cs (1)
119internal abstract IComponentFactory<IScalarLoss> LossFunctionFactory { get; }
Standard\Online\AveragedPerceptron.cs (1)
119internal override IComponentFactory<IScalarLoss> LossFunctionFactory => ClassificationLossFunctionFactory;
Standard\Online\OnlineGradientDescent.cs (1)
81internal override IComponentFactory<IScalarLoss> LossFunctionFactory => RegressionLossFunctionFactory;
Microsoft.ML.Sweeper (9)
Algorithms\Grid.cs (1)
33public IComponentFactory<IValueGenerator>[] SweptParameters;
Algorithms\KdoSweeper.cs (1)
42public IComponentFactory<IValueGenerator>[] SweptParameters;
Algorithms\NelderMead.cs (2)
24public IComponentFactory<IValueGenerator>[] SweptParameters; 101foreach (var sweptParameter in options.SweptParameters)
Algorithms\SmacSweeper.cs (1)
29public IComponentFactory<IValueGenerator>[] SweptParameters;
AsyncSweeper.cs (1)
156public IComponentFactory<ISweeper> Sweeper;
ConfigRunner.cs (1)
48public IComponentFactory<ISweepResultEvaluator<string>> ResultProcessor = ComponentFactoryUtils.CreateFromFunction(
SweepCommand.cs (2)
27public IComponentFactory<IConfigRunner> Runner = ComponentFactoryUtils.CreateFromFunction( 31public IComponentFactory<ISweeper> Sweeper;
Microsoft.ML.Sweeper.Tests (9)
TestSweeper.cs (9)
137SweptParameters = new IComponentFactory<IValueGenerator>[] { 160gridArgs.SweptParameters = new IComponentFactory<INumericValueGenerator>[] { 192SweptParameters = new IComponentFactory<INumericValueGenerator>[] { 242SweptParameters = new IComponentFactory<INumericValueGenerator>[] { 313SweptParameters = new IComponentFactory<INumericValueGenerator>[] { 364var param = new IComponentFactory<INumericValueGenerator>[] { 542var param = new IComponentFactory<INumericValueGenerator>[] { 598var param = new IComponentFactory<INumericValueGenerator>[] { 650SweptParameters = new IComponentFactory<INumericValueGenerator>[] {
Microsoft.ML.Transforms (3)
LearnerFeatureSelection.cs (1)
41public IComponentFactory<ITrainer<IPredictorWithFeatureWeights<Single>>> Filter =
RandomFourierFeaturizing.cs (2)
45public IComponentFactory<KernelBase> MatrixGenerator = new GaussianKernel.Options(); 62public IComponentFactory<KernelBase> MatrixGenerator;