MLFeatureType

abstract class NatSuite.ML.MLFeatureType

The MLFeatureType class is an abstract base class providing information that fully describes the structure of an MLFeature.

Every MLFeature has a corresponding MLFeatureType.

Getting the Name

/// <summary>
/// Feature name.
/// </summary>
string name { get; }

Some feature types include a name. This is usually the case with feature types provided by MLModel instances. However, most feature types attached to features do not have a name.

Getting the Data Type

/// <summary>
/// Feature data type.
/// This will typically be a numeric type.
/// </summary>
Type dataType { get; }

This is the data type of each element within a given feature. This is usually a signed numeric type.

Using Specific Types

NatML includes several concrete feature types, all of which inherit from MLFeatureType. These include: