OptimizationStepData<T, TInput, TOutput>

Models & Types · AiDotNet.Models

Represents comprehensive data about a single step in an optimization process, including the current solution, selected features, data subsets, fitness scores, and evaluation results.

For Beginners

This class stores all the important information about one step in a model optimization process.

When optimizing machine learning models:

  • You try different model configurations and feature sets
  • You need to track how each configuration performs
  • You want to store the data used to evaluate each configuration

This class stores all that information for a single optimization step, including:

  • The current model (solution)
  • Which features were selected for this model
  • Subsets of data used for training, validation, and testing
  • How well the model performed (fitness score)
  • Whether overfitting was detected
  • Detailed evaluation results across all datasets

This comprehensive information helps you analyze each step in the optimization process and make informed decisions about which model is best.

How It Works

This class encapsulates all the relevant data for a single step in an optimization or model selection process. It stores the current solution (model), the selected features, subsets of the data used for training, validation, and testing, the fitness score of the solution, overfitting detection results, and comprehensive evaluation data. This information is useful for tracking the optimization process, analyzing the performance of different solutions, and making decisions about which solution to select as the final model.

Constructors

Constructor Summary
OptimizationStepData() Initializes a new instance of the OptimizationStepData class with default values.

Properties

Property Summary
FitDetectorResult<T> FitDetectionResult { get; set; } Gets or sets the result of overfitting detection for this optimization step.
IFullModel<T, TInput, TOutput> Solution { get; set; } Gets or sets the current solution (model) for this optimization step.
List<Vector<T>> SelectedFeatures { get; set; } Gets or sets the list of selected feature vectors for this optimization step.
List<int> SelectedFeatureIndices { get; set; } Gets or sets the list of selected feature column indices for this optimization step.
ModelEvaluationData<T, TInput, TOutput> EvaluationData { get; set; } Gets or sets the comprehensive evaluation data for this optimization step.
T FitnessScore { get; set; } Gets or sets the fitness score for this optimization step.
TInput XTestSubset { get; set; } Gets or sets the subset of the test data used for this optimization step.
TInput XTrainSubset { get; set; } Gets or sets the subset of the training data used for this optimization step.
TInput XValSubset { get; set; } Gets or sets the subset of the validation data used for this optimization step.