【发布时间】:2018-04-01 08:02:06
【问题描述】:
我正在使用 R 进行分析,我将实现四种算法。
1. RF
2. Log Reg
3. SVM
4. LDA
我有 50 个预测变量和 1 个目标变量。我所有的预测变量和目标变量都只是二进制数字 0 和 1。
我有以下问题:
Should I convert them all into factors?
Converting them into factors, and applying RF algorithms give 100% accuracy, I am very much surprised to see that as well.
Also, for other algorithms, how should i treat my variables priorly, before feeding them into my other algorithms.
谢谢
【问题讨论】:
-
@HongOoi ,即使在测试数据上。
标签: r machine-learning statistics random-forest r-caret