问题标签 [c5.0]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
tidymodels - Tidymodels 中的 C5_rules()
我想使用 tidymodels 来拟合基于 C5.0 规则的分类模型。我已指定模型如下
在 C5_rules() 命令的文档中,我阅读了以下内容。
在对数据使用 fit.model_spec() 函数之前,不会训练或拟合模型。
我不太确定在那之后我需要对欧洲防风草模型对象做什么。每次我尝试拟合模型时,都会出现以下错误
预处理器 1/1,模型 1/1(预测):predict.C5.0 中的错误(object = object$fit,newdata = new_data,type = "class"):必须提供树或规则
我错过了什么?
非常感谢!