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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -