Contents

init(features:annotations:)

Creates an annotated batch.

Declaration

init(features: MLShapedArray<Scalar>, annotations: MLShapedArray<Scalar>)

Parameters

  • features:

    A shaped array of features.

  • annotations:

    A shaped array of annotations.

Discussion

The features and annotations must have the same rank, and the first dimensions must be equal.