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