Class BuiltInSupervisedAutoMLModelBase<T, TInput, TOutput>
Base class for built-in supervised AutoML strategies that operate on tabular Matrix/Vector tasks.
public abstract class BuiltInSupervisedAutoMLModelBase<T, TInput, TOutput> : SupervisedAutoMLModelBase<T, TInput, TOutput>, IAutoMLModel<T, TInput, TOutput>, IFullModel<T, TInput, TOutput>, IModel<TInput, TOutput, ModelMetadata<T>>, IModelSerializer, ICheckpointableModel, IParameterizable<T, TInput, TOutput>, IFeatureAware, IFeatureImportance<T>, ICloneable<IFullModel<T, TInput, TOutput>>, IGradientComputable<T, TInput, TOutput>, IJitCompilable<T>
Type Parameters
TThe numeric type used for calculations.
TInputThe input data type.
TOutputThe output data type.
- Inheritance
-
AutoMLModelBase<T, TInput, TOutput>SupervisedAutoMLModelBase<T, TInput, TOutput>BuiltInSupervisedAutoMLModelBase<T, TInput, TOutput>
- Implements
-
IAutoMLModel<T, TInput, TOutput>IFullModel<T, TInput, TOutput>IModel<TInput, TOutput, ModelMetadata<T>>IParameterizable<T, TInput, TOutput>ICloneable<IFullModel<T, TInput, TOutput>>IGradientComputable<T, TInput, TOutput>
- Derived
- Inherited Members
- Extension Methods
Remarks
This class centralizes built-in model construction and default candidate selection so different search strategies (random, Bayesian, evolutionary, etc.) can focus on "how to propose the next trial".
For Beginners: AutoML tries many "trials". Each trial picks a model family and some settings, then trains and scores it. Different strategies decide which settings to try next.
Constructors
BuiltInSupervisedAutoMLModelBase(IModelEvaluator<T, TInput, TOutput>?, Random?)
protected BuiltInSupervisedAutoMLModelBase(IModelEvaluator<T, TInput, TOutput>? modelEvaluator = null, Random? random = null)
Parameters
modelEvaluatorIModelEvaluator<T, TInput, TOutput>randomRandom
Methods
CreateModelAsync(ModelType, Dictionary<string, object>)
Creates a model instance for the given type and parameters
protected override Task<IFullModel<T, TInput, TOutput>> CreateModelAsync(ModelType modelType, Dictionary<string, object> parameters)
Parameters
modelTypeModelTypeparametersDictionary<string, object>
Returns
- Task<IFullModel<T, TInput, TOutput>>
EnsureDefaultCandidateModels(TInput, TOutput)
Applies built-in default candidate models when the user has not configured candidates explicitly.
protected void EnsureDefaultCandidateModels(TInput inputs, TOutput targets)
Parameters
inputsTInputtargetsTOutput
GetDefaultSearchSpace(ModelType)
Gets the default search space for a model type
protected override Dictionary<string, ParameterRange> GetDefaultSearchSpace(ModelType modelType)
Parameters
modelTypeModelType