predict_cl.Rd
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.
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.