TensorSplitResult<T>

Models & Types · AiDotNet.Preprocessing.DataPreparation

Contains the results of a data split operation for Tensor data.

For Beginners

This is the same as DataSplitResult, but for tensor (multi-dimensional) data like images, sequences, or other complex structures.

Constructors

Constructor Summary
TensorSplitResult()

Properties

Property Summary
Tensor<T> XTest { get; set; } Gets the feature tensor for testing.
Tensor<T> XTrain { get; set; } Gets the feature tensor for training.
Tensor<T> XValidation { get; set; } Gets the feature tensor for validation (optional three-way split).
Tensor<T> yTest { get; set; } Gets the target tensor for testing (null for unsupervised learning).
Tensor<T> yTrain { get; set; } Gets the target tensor for training (null for unsupervised learning).
Tensor<T> yValidation { get; set; } Gets the target tensor for validation (optional three-way split).
bool HasValidationSet { get; } Gets whether this result includes a validation set.
int? FoldIndex { get; set; } Gets the fold index for cross-validation methods (0-based).
int? RepeatIndex { get; set; } Gets the repeat index for repeated cross-validation methods (0-based).
int? TotalFolds { get; set; } Gets the total number of folds for cross-validation methods.
int? TotalRepeats { get; set; } Gets the total number of repeats for repeated cross-validation methods.
int[] TestIndices { get; set; } Gets the indices of samples from the original data that are in the test set.
int[] TrainIndices { get; set; } Gets the indices of samples from the original data that are in the training set.
int[] ValidationIndices { get; set; } Gets the indices of samples from the original data that are in the validation set (optional).

Methods

Method Summary
string GetSummary() Gets a human-readable summary of this split result.