Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created March 18, 2019 12:18
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 fitomad/b3e1b8246d42f507bfde13612372a07a to your computer and use it in GitHub Desktop.
Save fitomad/b3e1b8246d42f507bfde13612372a07a to your computer and use it in GitHub Desktop.
// Creamos el modelo de clasificación
if let classifier = try? MLClassifier(trainingData: trainingSet, targetColumn: "X_Wins")
{
// Probamos a evaluarlo...
let evaluationMetricts = classifier.evaluation(on: evaluationSet)
// ...y nos fijamos en la salida a ver qué tal ha ido.
print(evaluationMetricts.debugDescription)
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment