Description Usage Arguments Value
View source: R/model_building.R
This function predicts the class of the events (rows) based on a classification model previously trained and returns the row indexes of the positive class.
1 2 3 4 5 6 7 | predict_cl(
df,
model = model,
alg = c("RF", "XGB"),
features = features,
label = label
)
|
df |
An object of class |
model |
Object of class |
alg |
A character vector with the name of the classification algorithm
used to train |
features |
A character vector with the features used to train |
label |
A character vector with the name of the positive class. (e.g. 'beads') |
Returns a numeric vector with the row indexes of the positive class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.