Created
August 13, 2021 19:11
-
-
Save Rodio346/38ac60a92b5472da71a8f5a27484813c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vtreat | |
transform = vtreat.BinomialOutcomeTreatment( | |
outcome_name='yc', # We want vtreat change variable base on this column | |
outcome_target=True, # Tell vtreat that this is actually the target | |
cols_to_copy=[], # columns that we dont want vtreat to touch | |
) | |
d_prepared = transform.fit_transform(df, df.target) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment