org.apache.ignite.ml.dataset.primitive.data

## Class SimpleDatasetData

- java.lang.Object
- - org.apache.ignite.ml.dataset.primitive.data.SimpleDatasetData

- All Implemented Interfaces:
    AutoCloseable

      public class SimpleDatasetData
      extends Object
      implements AutoCloseable

  A partition `data` of the `SimpleDataset` containing matrix of features in flat column-major format stored in heap.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleDatasetData(double[] features, int rows)` Constructs a new instance of partition `data` of the `SimpleDataset` containing matrix of features in flat column-major format stored in heap.

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### SimpleDatasetData

          public SimpleDatasetData(double[] features,
                                   int rows)

      Constructs a new instance of partition `data` of the `SimpleDataset` containing matrix of features in flat column-major format stored in heap.
      Parameters:
        `features` - Matrix of features in a dense flat column-major format.
        `rows` - Number of rows.

  - ### Method Detail

    - #### getFeatures

          public double[] getFeatures()

    - #### getRows

          public int getRows()

    - #### close

          public void close()

      Specified by:
        `close` in interface `AutoCloseable`

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021