Random Forest 問題
2020/04/15 00:16 下午
機器學習共學討論版
lee2nd116
觀看數:14
回答數:2
收藏數:1
Random Forest
助教您好,
這次作業的英文參考資料中,Advantages of Random Forest algorithm的第二點提到
「For both classification and regression task, the same random forest algorithm can be used」
我想請問的是:
RandomForestClassifier與Randomforestregressor是各別處理分類和迴歸問題的Function,那如果一個DataSet裡面,同時有連續變數(float)與類別變數(object)時,有辦法一起跑隨機森林嗎,還是說只能先用前面課堂所提到的encoding方式,先把連續變數編碼成類別變數,再用RandomForestClassifier去處理呢? 謝謝