Description Usage Arguments Value Author(s) Examples
The function redefines the "binary" target variable to be used for modelling. It takes the variable or field name of the target and the event class. It changes the target field name to "Target", changes the events into 1 and non-events as 0 and places the target column at the end of the dataframe before returning it as output.
1 |
base |
input dataframe |
target |
column / field name for the target variable, to be passed as string |
event |
the event class, to be passed as string |
The function returns a dataframe after changing the target classes to 0 or 1.
Arya Poddar <aryapoddar290990@gmail.com>
1 2 3 4 5 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.