The shape and data type constraints for a multidimensional array feature.


class MLMultiArrayConstraint : NSObject


Accessing the Constraints

var shape: [NSNumber]

The shape of the multi array.

var dataType: MLMultiArrayDataType

The type for the multi array.

var shapeConstraint: MLMultiArrayShapeConstraint

The constraint on the shape of the multiarray.

class MLMultiArrayShapeConstraint

The lists of shapes or ranges of shapes that constrain a multiarray feature.


Inherits From

See Also

Accessing Feature Constraints

var imageConstraint: MLImageConstraint?

The size and format constraints for an image feature.

class MLImageConstraint

The width, height, and pixel format constraints of an image feature.

var dictionaryConstraint: MLDictionaryConstraint?

The constraint for a dictionary feature.

class MLDictionaryConstraint

The constraint on the keys for a dictionary feature.

var multiArrayConstraint: MLMultiArrayConstraint?

The constraints on a multidimensional array feature.

var sequenceConstraint: MLSequenceConstraint?

The constraints for a sequence feature.

class MLSequenceConstraint

The constraints for a sequence feature.