【问题标题】:How can I convert numerical classes to factors in WEKA?如何将数值类转换为 WEKA 中的因子?
【发布时间】:2019-09-19 20:27:35
【问题描述】:

在类中有数值的数据集中,例如这样:

类:1.0、2.0、3.0、4.0

WEKA 打开数据集,将类标签理解为数字,但我需要 WEKA 将该变量解释为分类变量。

我需要这样的东西,但在 WEKA:

data$Class = as.factor(data$Class)

【问题讨论】:

    标签: classification weka discretization


    【解决方案1】:

    您可以使用NumericToNominal 过滤器。

    【讨论】:

      猜你喜欢
      • 2014-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多