1 implementation of ICommandLineComponentFactory
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
2334private abstract class ComponentFactory : ICommandLineComponentFactory
40 references to ICommandLineComponentFactory
Microsoft.ML.Core (8)
CommandLine\CmdParser.cs (8)
1141public static ICommandLineComponentFactory CreateComponentFactory( 1551out ICommandLineComponentFactory factory)) 1582out ICommandLineComponentFactory factory)) 1617out ICommandLineComponentFactory factory)) 2284public static ICommandLineComponentFactory CreateComponentFactory( 2290if (!TryCreateComponentFactory(factoryType, signatureType, name, settings, out ICommandLineComponentFactory factory)) 2303out ICommandLineComponentFactory factory) 2326factory = (ICommandLineComponentFactory)Activator.CreateInstance(
Microsoft.ML.Data (16)
Commands\CrossValidationCommand.cs (2)
528ch.Assert(_scorer == null || _scorer is ICommandLineComponentFactory, "CrossValidationCommand should only be used from the command line."); 529var bindable = ScoreUtils.GetSchemaBindableMapper(host, predictor, scorerFactorySettings: _scorer as ICommandLineComponentFactory);
Commands\DataCommand.cs (1)
122if (factory is ICommandLineComponentFactory commandLineFactory)
Commands\ScoreCommand.cs (5)
111ch.Assert(scorer == null || scorer is ICommandLineComponentFactory, "ScoreCommand should only be used from the command line."); 112var bindable = ScoreUtils.GetSchemaBindableMapper(Host, predictor, scorerFactorySettings: scorer as ICommandLineComponentFactory); 285var bindable = GetSchemaBindableMapper(env, predictor, mapperFactory, scorerFactory as ICommandLineComponentFactory); 366ICommandLineComponentFactory scorerFactorySettings = null) 394ICommandLineComponentFactory scorerSettings, out ISchemaBindableMapper bindable)
Commands\TestCommand.cs (1)
115ch.Assert(ImplOptions.Scorer == null || ImplOptions.Scorer is ICommandLineComponentFactory, "TestCommand should only be used from the command line.");
Commands\TrainTestCommand.cs (1)
204ch.Assert(ImplOptions.Scorer == null || ImplOptions.Scorer is ICommandLineComponentFactory, "TrainTestCommand should only be used from the command line.");
DataLoadSave\LegacyCompositeDataLoader.cs (1)
137return (factory as ICommandLineComponentFactory)?.ToString();
DataLoadSave\Text\TextLoader.cs (3)
1353ch.Assert(h.Loader == null || h.Loader is ICommandLineComponentFactory); 1354var loader = h.Loader as ICommandLineComponentFactory;
Utilities\ComponentCreation.cs (2)
166ICommandLineComponentFactory scorerFactorySettings = CmdParser.CreateComponentFactory( 283var factory = CmdParser.CreateComponentFactory(factoryType, signatureType, settings);
Microsoft.ML.Predictor.Tests (11)
CmdLine\CmdLine.cs (4)
241foreach (var sc in subComponents.Cast<ICommandLineComponentFactory>()) 251var value = (ICommandLineComponentFactory)pair.Value;
CmdLine\CmdLineReverseTest.cs (7)
70CmdParser.ParseArguments(env, ((ICommandLineComponentFactory)outerArg1.sub1).GetSettingsString(), testArg = new SimpleArg()); 73CmdParser.ParseArguments(env, ((ICommandLineComponentFactory)outerArg1.sub2).GetSettingsString(), testArg = new SimpleArg()); 76CmdParser.ParseArguments(env, ((ICommandLineComponentFactory)outerArg1.sub3).GetSettingsString(), testArg = new SimpleArg()); 90var factory = CmdParser.CreateComponentFactory(typeof(IComponentFactory<ICalibratorTrainer>), typeof(SignatureCalibrator), cls.LoadNames[0]); 96var factory = CmdParser.CreateComponentFactory(typeof(IComponentFactory<ICalibratorTrainer>), typeof(SignatureCalibrator), component.Aliases[0]); 178if (!(left is ICommandLineComponentFactory commandLineLeft && 179right is ICommandLineComponentFactory commandLineRight))
Microsoft.ML.ResultProcessor (4)
ResultProcessor.cs (4)
437var acceptableCommand = chainArgs.Commands.Cast<ICommandLineComponentFactory>().FirstOrDefault(x => 522ICommandLineComponentFactory commandLineTrainer = trainer as ICommandLineComponentFactory;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipeBase.cs (1)
347if (factory is ICommandLineComponentFactory commandLineFactory)