evaluate | R Documentation |
evaluate learner performance. The actual evaluate varies according to the type of learner (clustering, classification, regression, time series regression)
evaluate(obj, ...)
obj |
object |
... |
optional arguments |
evaluation
data(iris)
slevels <- levels(iris$Species)
model <- cla_dtree("Species", slevels)
model <- fit(model, iris)
prediction <- predict(model, iris)
predictand <- adjust_class_label(iris[,"Species"])
test_eval <- evaluate(model, predictand, prediction)
test_eval$metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.