> For the complete documentation index, see [llms.txt](https://docs.natml.ai/js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.natml.ai/js/api/mlfeature.md).

# 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

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

Every feature has a corresponding [`MLFeatureType`](/js/api/mlfeaturetype.md) that provides information about the feature's shape, data type, and so on.

{% hint style="info" %}
The feature's `type` is immutable and can never be `undefined`.
{% endhint %}
