org.apache.ignite.ml.dataset.primitive

## Class FeatureMatrixWithLabelsOnHeapData

- java.lang.Object
- - org.apache.ignite.ml.dataset.primitive.FeatureMatrixWithLabelsOnHeapData

- All Implemented Interfaces:
    AutoCloseable
  Direct Known Subclasses:
    DecisionTreeData

      public class FeatureMatrixWithLabelsOnHeapData
      extends Object
      implements AutoCloseable

  A partition `data` of the containing matrix of features and vector of labels stored in heap.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FeatureMatrixWithLabelsOnHeapData(double[][] features, double[] labels)` Constructs an instance of FeatureMatrixWithLabelsOnHeapData.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `double[][]` | `getFeatures()`
    `double[]` | `getLabels()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FeatureMatrixWithLabelsOnHeapData

          public FeatureMatrixWithLabelsOnHeapData(double[][] features,
                                                   double[] labels)

      Constructs an instance of FeatureMatrixWithLabelsOnHeapData.
      Parameters:
        `features` - Features.
        `labels` - Labels.

  - ### Method Detail

    - #### getFeatures

          public double[][] getFeatures()

    - #### getLabels

          public double[] getLabels()

    - #### close

          public void close()

      Specified by:
        `close` in interface `AutoCloseable`

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021