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