Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created March 18, 2019 12:43
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/b8a5cbb719976e2558872077e902e790 to your computer and use it in GitHub Desktop.
Save fitomad/b8a5cbb719976e2558872077e902e790 to your computer and use it in GitHub Desktop.
// Metadatos del modelo
let modelInformation = makeModelMetadata()
do
{
// Guardamos el modelo en disco
try classifier.write(toFile: "/Users/adolfo/Desktop/TicTac.mlmodel", metadata: modelInformation)
}
catch let error
{
print("No se ha podido guardar el modelo.\r\n\(error.localizedDescription)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment