Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created July 23, 2020 17:47
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/7b6d5cdca76410c59811b8132b54e642 to your computer and use it in GitHub Desktop.
Save mdfarragher/7b6d5cdca76410c59811b8132b54e642 to your computer and use it in GitHub Desktop.
// get predictions and compare them to the ground truth
let metrics = testData |> model.Transform |> context.MulticlassClassification.Evaluate
// show evaluation metrics
printfn "Evaluation metrics"
printfn " MicroAccuracy: %f" metrics.MicroAccuracy
printfn " MacroAccuracy: %f" metrics.MacroAccuracy
printfn " LogLoss: %f" metrics.LogLoss
printfn " LogLossReduction: %f" metrics.LogLossReduction
// 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