2 implementations of IComponentFactory
Microsoft.ML.Core (2)
CommandLine\CmdParser.cs (1)
2424
private class ComponentFactory<TArg1, TArg2, TArg3, TComponent> : ComponentFactory,
IComponentFactory
<TArg1, TArg2, TArg3, TComponent>
ComponentModel\ComponentFactory.cs (1)
154
private sealed class SimpleComponentFactory<TArg1, TArg2, TArg3, TComponent> :
IComponentFactory
<TArg1, TArg2, TArg3, TComponent>
22 references to IComponentFactory
Microsoft.ML.Core (1)
ComponentModel\ComponentFactory.cs (1)
85
public static
IComponentFactory
<TArg1, TArg2, TArg3, TComponent> CreateFromFunction<TArg1, TArg2, TArg3, TComponent>(Func<IHostEnvironment, TArg1, TArg2, TArg3, TComponent> factory)
Microsoft.ML.Data (19)
Commands\CrossValidationCommand.cs (4)
34
public
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
184
var
scorer = ImplOptions.Scorer;
352
private readonly
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> _scorer;
392
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> scorer,
Commands\ScoreCommand.cs (9)
21
using TScorerFactory =
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform>;
58
public
TScorerFactory
Scorer;
110
var
scorer = ImplOptions.Scorer;
243
var
sc = GetScorerComponentAndMapper(predictor, null, data.Schema, env, null, out var mapper);
248
TScorerFactory
scorer,
268
var
sc = GetScorerComponentAndMapper(predictor, scorer, schema, env, mapperFactory, out var mapper);
275
private static
TScorerFactory
GetScorerComponentAndMapper(
277
TScorerFactory
scorerFactory,
301
public static
TScorerFactory
GetScorerComponent(
Commands\TestCommand.cs (1)
48
public
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Commands\TrainTestCommand.cs (1)
32
public
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Scorers\FeatureContributionCalculation.cs (1)
69
var
scorer = ScoreUtils.GetScorerComponent(env, contributionMapper);
Transforms\TrainAndScoreTransformer.cs (2)
42
public
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
159
public
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> Scorer;
Utilities\ComponentCreation.cs (1)
163
Type factoryType = typeof(
IComponentFactory
<IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform>);
Microsoft.ML.EntryPoints (2)
ScoreModel.cs (2)
86
var
scorer = ScoreUtils.GetScorerComponent(host, mapper, input.Suffix);
136
var
scorer = ScoreUtils.GetScorerComponent(host, mapper);