OptimizerFactory<T, TInput, TOutput>

Helpers & Utilities · AiDotNet.Factories

A factory class that creates optimizer instances for training machine learning models.

For Beginners

An optimizer is an algorithm that adjusts the parameters of a machine learning model to minimize errors and improve performance. Think of it like a navigator that helps your model find the best path to the correct answers.

How It Works

This factory helps you create different types of optimizers without needing to know their internal implementation details. Think of it like ordering a specific tool from a catalog - you just specify what you need, and the factory provides it.

Methods

Method Summary
IOptimizer<T, TInput, TOutput> CreateOptimizer(OptimizerType optimizerTypeEnum, OptimizationAlgorithmOptions<T, TInput, TOutput> options) Creates an optimizer of the specified type with the given options.
OptimizerType GetOptimizerType(IOptimizer<T, TInput, TOutput> optimizer) Determines the optimizer type from an existing optimizer instance.