public class SimpleLabeledDatasetData extends Object implements AutoCloseable
data
of the SimpleLabeledDataset
containing matrix of features in flat column-major
format stored in heap and vector of labels stored in heap as well.Constructor and Description |
---|
SimpleLabeledDatasetData(double[] features,
double[] labels,
int rows)
Constructs a new instance of partition
data of the SimpleLabeledDataset containing matrix of
features in flat column-major format stored in heap and vector of labels stored in heap as well. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
double[] |
getFeatures() |
double[] |
getLabels() |
int |
getRows() |
public SimpleLabeledDatasetData(double[] features, double[] labels, int rows)
data
of the SimpleLabeledDataset
containing matrix of
features in flat column-major format stored in heap and vector of labels stored in heap as well.features
- Matrix with features in a dense flat column-major format.labels
- Vector with labels.rows
- Number of rows.public double[] getFeatures()
public int getRows()
public double[] getLabels()
public void close()
close
in interface AutoCloseable
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024