【问题标题】:What should be the type of categorical variable when using the function randomForest?使用函数 randomForest 时,分类变量的类型应该是什么?
【发布时间】:2019-09-29 22:05:45
【问题描述】:

这只是一个一般理论问题,我在大学数据科学模拟面试中被问到这个问题,我试图寻找这个答案,但无法在其他地方得到它。希望有人能帮助我。另外我对随机森林的掌握不多

【问题讨论】:

    标签: r random-forest


    【解决方案1】:

    就general theory 而言,随机森林可以处理数字数据和分类数据。函数randomForest (documentation here) 支持编码为因子的分类数据,因此这将是您的类型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-20
      • 2018-09-12
      • 1970-01-01
      • 2019-12-30
      相关资源
      最近更新 更多