NODEClassifier<T>

Models & Types ยท AiDotNet.NeuralNetworks.Tabular

NODE implementation for classification tasks.

Inheritance: NODEBase<T> โ†’ NODEClassifier<T>

For Beginners

Use NODE for classification when you want:

  • Interpretable models (see feature importance via GetFeatureImportance())
  • Tree-based structure with neural network trainability
  • Good performance on tabular data with mixed feature types

Example:

How It Works

NODEClassifier uses an ensemble of differentiable oblivious decision trees for multi-class classification on tabular data.

Constructors

Constructor Summary
NODEClassifier(int numFeatures, int numClasses, NODEOptions<T> options) Initializes a new instance of the NODEClassifier class.

Properties

Property Summary
int NumClasses { get; } Gets the number of output classes.

Methods

Method Summary
T ComputeAccuracy(Tensor<T> features, Vector<int> targets) Computes classification accuracy.
T ComputeCrossEntropyLoss(Tensor<T> probabilities, Vector<int> targets) Computes the cross-entropy loss.
T TrainStep(Tensor<T> features, Vector<int> targets, T learningRate) Performs a single training step.
Tensor<T> Forward(Tensor<T> features) Performs the forward pass to get class logits.
Tensor<T> PredictProbabilities(Tensor<T> features) Predicts class probabilities using softmax.
Vector<int> Predict(Tensor<T> features) Predicts the most likely class for each sample.
void ResetState() Resets internal state.
void UpdateParameters(T learningRate) Updates all parameters.