org.apache.ignite.ml.composition

## Interface DatasetMapping<L1,L2>

- Type Parameters:
    `L1` - Type of labels before mapping.
    `L2` - Type of labels after mapping.

      public interface DatasetMapping<L1,L2>

  This class represents dataset mapping. This is just a tuple of two mappings: one for features and one for labels.

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default Vector` | `mapFeatures(Vector v)` Method used to map feature vectors.
    `L2` | `mapLabels(L1 lbl)` Method used to map labels.
    `static <L> DatasetMapping<L,L>` | `mappingFeatures(IgniteFunction<Vector,Vector> mapper)` Dataset mapping which maps features, leaving labels unaffected.

- - ### Method Detail

    - #### mapFeatures

          default Vector mapFeatures(Vector v)

      Method used to map feature vectors.
      Parameters:
        `v` - Feature vector.
      Returns:
        Mapped feature vector.

    - #### mapLabels

          L2 mapLabels(L1 lbl)

      Method used to map labels.
      Parameters:
        `lbl` - Label.
      Returns:
        Mapped label.

    - #### mappingFeatures

          static <L> DatasetMapping<L,L> mappingFeatures(IgniteFunction<Vector,Vector> mapper)

      Dataset mapping which maps features, leaving labels unaffected.
      Type Parameters:
        `L` - Type of labels.
      Parameters:
        `mapper` - Function used to map features.
      Returns:
        Dataset mapping which maps features, leaving labels unaffected.

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020