Dummy Package in R -


could ?

i using dummy package in r (function dummy) convert categorical variable(10 categories) dummy variables because of algorithms using (adaboost , rotation forest), don't handle categorical variables well.

after using package 10 dummy variables factors. expected them numeric 1s , 0s.

should convert them numeric ? or use them factors.

thanks lot !!!! best pedro

after performing 1 hot encoding there no difference keeping them factor or numeric . better not perform 1 hot encoding tree based models.it decrease performance.here article describing effect of 1 hotted variables..it better pass categorical variables converting them factors


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -