MLFeature

abstract class MLFeature

The MLFeature class is an abstract base class representing input and output features used in making predictions. All predictors accept one or more features, which are then provided to the model to make predictions.

Inspecting the Feature

/**
 * Feature type.
 */
type: MLFeatureType;

Every feature has a corresponding MLFeatureType that provides information about the feature's shape, data type, and so on.

The feature's type is immutable and can never be undefined.

Last updated