Prediction using mlpack via baritsu
Source:R/0_predict.R
, R/boost-tree.R
, R/decision-tree.R
, and 9 more
predict.baritsu.Rd
Predicts with new data using a stored mlpack model.
Usage
# S3 method for class 'baritsu_ab'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_dt'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_ht'
predict(object, newdata, ...)
# S3 method for class 'baritsu_blr'
predict(object, newdata, ...)
# S3 method for class 'baritsu_lr'
predict(object, newdata, ...)
# S3 method for class 'baritsu_lgr'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_prc'
predict(object, newdata, ...)
# S3 method for class 'baritsu_sr'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_nbc'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_rf'
predict(object, newdata, type = c("both", "class", "prob"), ...)
# S3 method for class 'baritsu_svm'
predict(object, newdata, type = c("both", "class", "prob"), ...)