CrossValidationFitDetector<T, TInput, TOutput>

Models & Types · AiDotNet.FitDetectors

A fit detector that analyzes model performance across training, validation, and test datasets to assess model fit.

Inheritance: FitDetectorBase<T, TInput, TOutput> → CrossValidationFitDetector<T, TInput, TOutput>

For Beginners

Cross-validation is a technique for evaluating how well a model will generalize to independent data by comparing its performance on different subsets of the data. This detector analyzes the model’s performance metrics across training, validation, and test datasets to determine if it’s underfitting, overfitting, or has a good fit.

How It Works

By comparing metrics like R² (coefficient of determination) across different datasets, the detector can identify issues like overfitting (performing much better on training than validation data) or underfitting (performing poorly across all datasets).

Constructors

Constructor Summary
CrossValidationFitDetector(CrossValidationFitDetectorOptions options) Initializes a new instance of the CrossValidationFitDetector class.

Methods

Method Summary
FitDetectorResult<T> DetectFit(ModelEvaluationData<T, TInput, TOutput> evaluationData) Detects the fit type of a model based on cross-validation analysis.