JavaScript
  • NatML for JavaScript
  • Preliminaries
    • Getting Started
  • Using Predictors
    • Core Concepts
    • Fetching Predictors
  • API Reference
    • IMLPredictor
    • IMLAsyncPredictor
    • MLModelData
    • MLModel
      • MLHubModel
      • MLEdgeModel
    • MLFeature
      • MLArrayFeature
      • MLAudioFeature
      • MLImageFeature
      • MLTextFeature
    • MLFeatureType
      • MLArrayType
      • MLAudioType
      • MLImageType
      • MLTextType
  • Insiders
    • Distributing Predictors
    • Changelog
    • GitHub
    • Discord
    • Blog
Powered by GitBook
On this page

Was this helpful?

  1. API Reference

MLFeature

abstract class MLFeature

PreviousMLEdgeModelNextMLArrayFeature

Last updated 3 years ago

Was this helpful?

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 that provides information about the feature's shape, data type, and so on.

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

MLFeatureType