OneHotEncoder() drop='first' #50
-
|
Hey, I read at many online sites that using drop='first' will reduce redundancy and help the model learn faster and better. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey, @shashwat9kumar It might be true for instances where your problem suffers from multicollinearity, where more than 1 independent variable is related to your dependent variable. If your problem is multicollinearity? then you can use Tbh the documentation says the same, I attached a pic below Hope it helps! |
Beta Was this translation helpful? Give feedback.

Hey, @shashwat9kumar It might be true for instances where your problem suffers from multicollinearity, where more than 1 independent variable is related to your dependent variable.
In this case
drop = "first"will work during encoding it reduces the problem of multicollinearity by a minimum level.If your problem is multicollinearity? then you can use
drop = firstif not the default would work. This is the one reason I know and there might be n number of reasons to usedrop = 'first'.Tbh the documentation says the same, I attached a pic below
Hope it helps!