1 type derived from SweepableEstimator
Microsoft.ML.AutoML (1)
SweepableEstimator\SweepableEstimator.cs (1)
57
internal abstract class SweepableEstimator<TOption> :
SweepableEstimator
5 instantiations of SweepableEstimator
Microsoft.ML.AutoML (5)
API\AutoCatalog.cs (1)
304
return new
SweepableEstimator
((MLContext context, Parameter param) => factory(context, param.AsType<T>()), ss);
API\SweepableExtension.cs (3)
16
return pipeline.Append(new
SweepableEstimator
((context, parameter) => estimator, new SearchSpace.SearchSpace()));
31
var sweepableEstimator = new
SweepableEstimator
((context, parameter) => estimator, new SearchSpace.SearchSpace());
47
var sweepableEstimator = new
SweepableEstimator
((context, parameter) => estimator, new SearchSpace.SearchSpace());
SweepableEstimator\Converter\SweepableEstimatorConverter.cs (1)
21
var estimator = new
SweepableEstimator
(estimatorType);
73 references to SweepableEstimator
Microsoft.ML.AutoML (60)
API\AutoCatalog.cs (12)
301
public
SweepableEstimator
CreateSweepableEstimator<T>(Func<MLContext, T, IEstimator<ITransformer>> factory, SearchSpace<T> ss = null)
316
/// Create a list of <see cref="
SweepableEstimator
"/> for binary classification.
356
var res = new List<
SweepableEstimator
>();
407
/// Create a list of <see cref="
SweepableEstimator
"/> for multiclass classification.
460
var res = new List<
SweepableEstimator
>();
530
/// Create a list of <see cref="
SweepableEstimator
"/> for regression.
571
var res = new List<
SweepableEstimator
>();
622
/// Create a list of <see cref="
SweepableEstimator
"/> for featurizing text.
662
/// <returns>a list of <see cref="
SweepableEstimator
"/></returns>
663
internal
SweepableEstimator
[] BooleanFeaturizer(string[] outputColumnNames, string[] inputColumnNames)
680
/// Create a list of <see cref="
SweepableEstimator
"/> for featurizing catalog columns.
694
return new SweepablePipeline().Append(new
SweepableEstimator
[] { SweepableEstimatorFactory.CreateOneHotEncoding(option), SweepableEstimatorFactory.CreateOneHotHashEncoding(option) });
API\SweepableExtension.cs (8)
9
public static SweepablePipeline Append(this IEstimator<ITransformer> estimator,
SweepableEstimator
estimator1)
19
public static SweepablePipeline Append(this
SweepableEstimator
estimator, SweepablePipeline estimator1)
24
public static SweepablePipeline Append(this
SweepableEstimator
estimator, IEstimator<ITransformer> estimator1)
31
var
sweepableEstimator = new SweepableEstimator((context, parameter) => estimator, new SearchSpace.SearchSpace());
37
public static SweepablePipeline Append(this
SweepableEstimator
estimator, params
SweepableEstimator
[] estimators)
45
public static SweepablePipeline Append(this IEstimator<ITransformer> estimator, params
SweepableEstimator
[] estimators)
47
var
sweepableEstimator = new SweepableEstimator((context, parameter) => estimator, new SearchSpace.SearchSpace());
SweepableEstimator\Converter\MultiModelPipelineConverter.cs (1)
19
var estimators = jValue["estimator"].GetValue<Dictionary<string,
SweepableEstimator
>>();
SweepableEstimator\Converter\SweepableEstimatorConverter.cs (4)
14
internal class SweepableEstimatorConverter : JsonConverter<
SweepableEstimator
>
16
public override
SweepableEstimator
Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
21
var
estimator = new SweepableEstimator(estimatorType);
27
public override void Write(Utf8JsonWriter writer,
SweepableEstimator
value, JsonSerializerOptions options)
SweepableEstimator\Converter\SweepableEstimatorPipelineConverter.cs (1)
19
var estimators = jNode["estimators"].GetValue<
SweepableEstimator
[]>();
SweepableEstimator\Converter\SweepablePipelineConverter.cs (1)
20
var estimators = jValue["estimator"].GetValue<Dictionary<string,
SweepableEstimator
>>();
SweepableEstimator\MultiModelPipeline.cs (12)
17
private readonly Dictionary<string,
SweepableEstimator
> _estimators;
22
_estimators = new Dictionary<string,
SweepableEstimator
>();
26
internal MultiModelPipeline(Dictionary<string,
SweepableEstimator
> estimators, Entity schema)
32
public Dictionary<string,
SweepableEstimator
> Estimators { get => _estimators; }
42
public MultiModelPipeline Append(params
SweepableEstimator
[] estimators)
45
foreach (
var
estimator in estimators)
59
public MultiModelPipeline AppendOrSkip(params
SweepableEstimator
[] estimators)
62
foreach (
var
estimator in estimators)
134
private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string,
SweepableEstimator
> lookupTable)
170
private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string,
SweepableEstimator
> estimators)
185
estimators[id] = (
SweepableEstimator
)sweepableEntity0.Estimator;
195
private string GetNextId(Dictionary<string,
SweepableEstimator
> estimators)
SweepableEstimator\SweepableEstimatorPipeline.cs (8)
16
private readonly List<
SweepableEstimator
> _estimators;
20
_estimators = new List<
SweepableEstimator
>();
24
internal SweepableEstimatorPipeline(IEnumerable<
SweepableEstimator
> estimators)
29
foreach (
var
e in estimators)
36
internal SweepableEstimatorPipeline(IEnumerable<
SweepableEstimator
> estimators, Parameter parameter)
41
foreach (
var
e in estimators)
66
public IEnumerable<
SweepableEstimator
> Estimators { get => _estimators; }
70
public SweepableEstimatorPipeline Append(
SweepableEstimator
estimator)
SweepableEstimator\SweepablePipeline.cs (12)
21
private readonly Dictionary<string,
SweepableEstimator
> _estimators = new Dictionary<string,
SweepableEstimator
>();
68
_estimators = new Dictionary<string,
SweepableEstimator
>();
72
internal SweepablePipeline(Dictionary<string,
SweepableEstimator
> estimators, Entity schema, string currentSchema = null)
79
public Dictionary<string,
SweepableEstimator
> Estimators { get => _estimators; }
94
var
estimator = _estimators[key];
122
if (sweepable is
SweepableEstimator
estimator)
162
var
estimator = _estimators[key];
194
private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string,
SweepableEstimator
> lookupTable)
230
private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string,
SweepableEstimator
> estimators)
245
estimators[id] = (
SweepableEstimator
)sweepableEntity0.Estimator;
255
private string GetNextId(Dictionary<string,
SweepableEstimator
> estimators)
Tuner\PipelineProposer.cs (1)
204
var
estimator = pipeline.Estimators[s.Value];
Microsoft.ML.AutoML.Samples (1)
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
45
var
lgbm = context.Auto().CreateSweepableEstimator((_context, option) =>
Microsoft.ML.AutoML.Tests (12)
SweepableEstimatorPipelineTest.cs (12)
47
var
e1 = new SweepableEstimator(CodeGen.EstimatorType.Concatenate);
48
var
e2 = new SweepableEstimator(CodeGen.EstimatorType.ConvertType);
59
var
e1 = new SweepableEstimator(CodeGen.EstimatorType.Concatenate);
60
var
e2 = new SweepableEstimator(CodeGen.EstimatorType.ConvertType);
61
var
e3 = new SweepableEstimator(CodeGen.EstimatorType.ApplyOnnxModel);
62
var
e4 = new SweepableEstimator(CodeGen.EstimatorType.LightGbmBinary);
75
var
e1 = new SweepableEstimator(CodeGen.EstimatorType.Concatenate);
76
var
e2 = new SweepableEstimator(CodeGen.EstimatorType.ConvertType);
77
var
e3 = new SweepableEstimator(CodeGen.EstimatorType.ApplyOnnxModel);
78
var
e4 = new SweepableEstimator(CodeGen.EstimatorType.LightGbmBinary);
79
var
e5 = new SweepableEstimator(CodeGen.EstimatorType.FastTreeBinary);
133
var pipeline = new SweepableEstimatorPipeline(new
SweepableEstimator
[] { concat, replaceMissingValue, oneHot, lightGbm, fastTree });