Table of Contents

Interface IRegression<T>

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Defines the common interface for all regression algorithms in the AiDotNet library.

public interface IRegression<T> : IFullModel<T, Matrix<T>, Vector<T>>, IModel<Matrix<T>, Vector<T>, ModelMetadata<T>>, IModelSerializer, ICheckpointableModel, IParameterizable<T, Matrix<T>, Vector<T>>, IFeatureAware, IFeatureImportance<T>, ICloneable<IFullModel<T, Matrix<T>, Vector<T>>>, IGradientComputable<T, Matrix<T>, Vector<T>>, IJitCompilable<T>

Type Parameters

T

The numeric type used for calculations (e.g., float, double).

Inherited Members
Extension Methods

Remarks

For Beginners: Regression is a type of machine learning algorithm used to predict continuous values.

For example, regression can be used to:

  • Predict house prices based on features like size, location, and age
  • Forecast sales numbers based on historical data
  • Estimate a person's income based on education, experience, and other factors

This interface inherits from ILinearModel, which means all regression models share common functionality for training on data and making predictions.

Unlike classification algorithms (which predict categories), regression algorithms predict numeric values on a continuous scale.