Skip to content

Instantly share code, notes, and snippets.

@olokobayusuf
Last active September 12, 2021 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olokobayusuf/67532ef9edead6a2ca3093d505f3fe2e to your computer and use it in GitHub Desktop.
Save olokobayusuf/67532ef9edead6a2ca3093d505f3fe2e to your computer and use it in GitHub Desktop.
Make predictions with a NatML model.
// If you have some feature
Texture2D image = ...;
// You can predict easily
var (label, confidence) = predictor.Predict(image);
Debug.Log($"Image contains {label} with confidence {confidence}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment