GANDALFRegression<T>

Models & Types · AiDotNet.NeuralNetworks.Tabular

GANDALF implementation for regression tasks.

Inheritance: GANDALFBase<T> → GANDALFRegression<T>

For Beginners

Use GANDALF for regression when you want:

  • Automatic feature importance learning
  • Interpretable predictions
  • Good performance on tabular data with continuous targets

Example:

How It Works

GANDALFRegression uses gated feature selection with neural decision trees for predicting continuous values. The additive ensemble of trees directly produces the regression output.

Constructors

Constructor Summary
GANDALFRegression() Initializes a new instance of the GANDALFRegression class with default configuration.
GANDALFRegression(int numFeatures, int outputDimension, GANDALFOptions<T> options) Initializes a new instance of the GANDALFRegression class.

Properties

Property Summary
int OutputDimension { get; } Gets the output dimension.

Methods

Method Summary
T ComputeMAELoss(Tensor<T> predictions, Tensor<T> targets) Computes the Mean Absolute Error loss.
T ComputeMSELoss(Tensor<T> predictions, Tensor<T> targets) Computes the Mean Squared Error loss.
T ComputeR2Score(Tensor<T> features, Tensor<T> targets) Computes the R² score (coefficient of determination).
T ComputeRMSE(Tensor<T> features, Tensor<T> targets) Computes the Root Mean Squared Error.
T TrainStep(Tensor<T> features, Tensor<T> targets, T learningRate) Performs a single training step.
Tensor<T> Forward(Tensor<T> features) Performs the forward pass to get predictions.
Tensor<T> Predict(Tensor<T> features) Makes predictions (alias for Forward).
void ResetState() Resets internal state.
void UpdateParameters(T learningRate) Updates all parameters.