【发布时间】:2019-06-28 00:09:56
【问题描述】:
train(Class ~ ., data = training,
method = "gbm",
trControl = fitControl,
## This last option is actually one
## for gbm() that passes through
verbose = FALSE)
我知道 Class 是预测器,但我不明白的是 ~ 的含义/需要。
任何帮助或指向帮助的指针都将受到高度赞赏。
PS。我是 R 新手
【问题讨论】:
-
这是一个公式,表示Class是使用数据中的所有其他变量来预测的。
-
@r.user.05apr ,是否有关于如何使用/创建此公式/过滤器的文档?我的意思是如何自定义它。