Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created November 8, 2019 15:31
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 mdfarragher/67c82b91b54ee8052aeea4a6b8e40cd8 to your computer and use it in GitHub Desktop.
Save mdfarragher/67c82b91b54ee8052aeea4a6b8e40cd8 to your computer and use it in GitHub Desktop.
// set up data arrays
var training_data = training.Select(v => v.GetFeatures()).ToArray();
var training_labels = training.Select(v => v.GetLabel()).ToArray();
var testing_data = testing.Select(v => v.GetFeatures()).ToArray();
var testing_labels = testing.Select(v => v.GetLabel()).ToArray();
// the rest of the code goes here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment