MLFeature
abstract class NatML.MLFeature
Creating a Feature
From an Array
// With a `float` array
float[] array = ...;
// Create a feature
MLFeature feature = array;
// Then make a prediction
predictor.Predict(feature);
// This works too
predictor.Predict(array);From a Texture2D
// With a `Texture2D`
Texture2D texture = ...;
// Create a feature
MLFeature feature = texture;
// Then make a prediction
predictor.Predict(feature);
// This works too
predictor.Predict(texture);From a WebCamTexture
From an AudioClip
From a String
Inspecting the Feature
Last updated