evaluate {daltoolbox} | R Documentation |
evaluate
Description
evaluate learner performance. The actual evaluate varies according to the type of learner (clustering, classification, regression, time series regression)
Usage
evaluate(obj, ...)
Arguments
obj |
object |
... |
optional arguments |
Value
evaluation
Examples
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
[Package daltoolbox version 1.0.767 Index]