Table of Contents

Class BuiltInSupervisedAutoMLModelBase<T, TInput, TOutput>

Namespace
AiDotNet.AutoML
Assembly
AiDotNet.dll

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

T

The numeric type used for calculations.

TInput

The input data type.

TOutput

The 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

modelEvaluator IModelEvaluator<T, TInput, TOutput>
random Random

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

modelType ModelType
parameters Dictionary<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

inputs TInput
targets TOutput

GetDefaultSearchSpace(ModelType)

Gets the default search space for a model type

protected override Dictionary<string, ParameterRange> GetDefaultSearchSpace(ModelType modelType)

Parameters

modelType ModelType

Returns

Dictionary<string, ParameterRange>