TabDPTRegression<T>

Models & Types · AiDotNet.NeuralNetworks.Tabular

TabDPT implementation for regression tasks.

Inheritance: TabDPTBase<T> → TabDPTRegression<T>

For Beginners

Use TabDPT for regression when:

  • You need to predict continuous values from tabular data
  • You want to leverage foundation model capabilities
  • Your data has complex feature interactions

Example:

How It Works

TabDPTRegression applies foundation model concepts to tabular regression, leveraging pre-trained representations for continuous value prediction.

Constructors

Constructor Summary
TabDPTRegression(int numNumericalFeatures, int outputDimension, TabDPTOptions<T> options) Initializes a new instance of the TabDPTRegression 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> numericalFeatures, Tensor<T> targets, Matrix<int> categoricalIndices) Computes the R² score (coefficient of determination).
T ComputeRMSE(Tensor<T> numericalFeatures, Tensor<T> targets, Matrix<int> categoricalIndices) Computes the Root Mean Squared Error.
T TrainStep(Tensor<T> numericalFeatures, Tensor<T> targets, T learningRate, Matrix<int> categoricalIndices) Performs a single training step.
Tensor<T> Forward(Tensor<T> numericalFeatures, Matrix<int> categoricalIndices) Performs the forward pass to get predictions.
Tensor<T> Predict(Tensor<T> numericalFeatures, Matrix<int> categoricalIndices) Makes predictions (alias for Forward).
void ResetState() Resets internal state.
void UpdateParameters(T learningRate) Updates all parameters.