Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Last active July 21, 2020 12:43
Show Gist options
  • Save mdfarragher/784ce270169f643a55e124bc7870b128 to your computer and use it in GitHub Desktop.
Save mdfarragher/784ce270169f643a55e124bc7870b128 to your computer and use it in GitHub Desktop.
// get regression metrics to score the model
let metrics = partitions.TestSet |> model.Transform |> context.Regression.Evaluate
// show the metrics
printfn "Model metrics:"
printfn " RMSE:%f" metrics.RootMeanSquaredError
printfn " MSE: %f" metrics.MeanSquaredError
printfn " MAE: %f" metrics.MeanAbsoluteError
// 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