ModelHelper<T, TInput, TOutput>

Helpers & Utilities · AiDotNet.Helpers

Provides helper methods for model-related operations.

For Beginners

This helper class contains methods for creating and working with different types of machine learning models. It makes it easier to initialize models, handle different data types, and perform common operations needed when working with models.

Methods

Method Summary
IFullModel<T, TInput, TOutput> CreateDefaultModel() Creates a default implementation of IFullModel based on the input and output types.
IFullModel<T, TInput, TOutput> CreateRandomModelWithFeatures(int[] activeFeatures, int totalFeatures, bool useExpressionTrees, int maxExpressionTreeDepth) Creates a random model that emphasizes specific features.
List<Vector<T>> GetColumnVectors(TInput input, int[] indices) Gets column vectors from the input data based on the specified indices.
ValueTuple<TInput, TOutput, TOutput> CreateDefaultModelData() Creates default empty model data for initialization purposes.