bbalasub1 / glmnet_python

GNU General Public License v3.0
199 stars 93 forks source link

Categorial variable #34

Open rontomer opened 6 years ago

rontomer commented 6 years ago

Hi, Is there any way to use categorial with glmnet without converting it to dummy variable? In statsmodels for example I can set it as follow formula = 'Y ~ X1 + X2 + C(X3) + C(X4) Thanks Tomer

gokceneraslan commented 4 years ago

This is what patsy does (https://patsy.readthedocs.io/en/latest/quickstart.html). Adding formula support to glmnet would be very cool, but I don't think this package is maintained any more.

eduard93 commented 3 years ago

I also need categorial support