NatML
Search…
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.

Inspecting the Name

1
/// <summary>
2
/// Feature name.
3
/// </summary>
4
string name { get; }
Copied!
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.

Inspecting the Data Type

1
/// <summary>
2
/// Feature data type.
3
/// This will typically be a numeric type.
4
/// </summary>
5
Type dataType { get; }
Copied!
This is the data type of each element within a given feature. This is usually a signed numeric type.

Type Conversions

1
/// <summary>
2
/// Check if feature type is non-null.
3
/// </summary>
4
static implicit operator bool (MLFeatureType type);
Copied!
The feature type provides an implicit conversion to bool, indicating whether the feature type is non-null.
Last modified 1d ago