if (FALSE) {
data(iris)
# 1) Define classifier with target attribute and its levels
clf <- skcla_rf(attribute = 'Species', slevels = levels(iris$Species), n_estimators = 200)
# 2) Fit and predict
clf <- daltoolbox::fit(clf, iris)
pred <- predict(clf, iris) # wrapper drops target column internally
table(pred, iris$Species)
}
# More examples:
# https://github.com/cefet-rj-dal/daltoolboxdp/blob/main/examples/skcla_rf.md
Run the code above in your browser using DataLab