View source: R/predict_tweaked.R
predict_tweaked | R Documentation |
This function applies the logistic regression predict after carefully removing observations of categorical features' levels absent from the training set..
predict_tweaked(model, df, c_iter)
model |
The logistic regression model to use to predict on a test set. |
df |
The whole test set which class has to be predicted. |
c_iter |
The segment considered (given by the tree). |
A dataframe of predictions (in rows: the observations, in cols: the class probabilities) given by the model given in input, eventually tweaked if some levels are unknown to it.
Adrien Ehrhardt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.