Can't we use gain ratio on random forest for numerical attributes?

ed1305ed1305 MemberPosts:8Contributor I
edited March 2019 inHelp
my input to the random forest are all attributes of valuetype "real".I want to use gain ratio criteria here but it gives the followin error:
"Only least_square criterion can be used for numeric labels"
how to solve this??

Answers

  • hughesfleming68hughesfleming68 MemberPosts:323Unicorn
    edited March 2019
    You can use the the selector to chose least square as the criterion. Your random forest will the work on numeric data. It is the last one in the list and the only one that works.

    regards,

    Alex
    varunm1
  • varunm1varunm1 Moderator, MemberPosts:1,207Unicorn
    @ed1305

    Gain ratio doesn't work on numerical attributes if base is J48. The base algorithm used is J48(java implementation of C4.5) in Rapidminer if you select gain ratio. So as@hughesfleming68said you can select only least square for numeric attributes. If you want to use gain ration you can change the type of attribute if possible.

    Correct me if I am wrong
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

    sgenzer IngoRM
Sign InorRegisterto comment.