Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我h2o在 R 中使用 gbm 模型来拟合我的数据。我有几个分类变量,我正在使用函数中的选项categorical_encoding对h2o.gbm这些变量进行编码。
h2o
categorical_encoding
h2o.gbm
在处理测试集中的预测时,我如何处理分类变量?该函数predict似乎没有自动编码分类变量的选项。
predict
H2O 的好处是您不必担心手动分类编码。h2o.predict()将应用在训练期间指定的相同分类编码方法。有关如何在训练期间设置分类编码类型的更多信息,请参阅文档。
h2o.predict()