【问题标题】:Use rules from weka inside Java code在 Java 代码中使用 weka 的规则
【发布时间】:2013-04-14 07:15:15
【问题描述】:

我正在使用由 weka 的分类器生成的规则。这些规则由 Weka 在一个字符串中生成,并且在每种不同的规则情况下,我都必须实现每个规则(即手动,在 Java 中)。我认为也许有更好的方法来完成这个过程,也许使用 API。

我可以做到的一种方法是处理由表示规则的分类器(ClassifierTree 类)生成的字符串。但我认为这可能有一些最简单的方法。

谁能帮帮我?

问候,

布鲁诺·莫雷诺

【问题讨论】:

标签: java classification weka


【解决方案1】:

如果您的分类器supports it,您可能会获得经过训练的分类器的java 代码。看following answer option three。以下摘自Weka Wiki Generating source code from WEKA classes:

All classifiers implementing the weka.classifiers.Sourcable interface 
can turn their model into Java source code 
(check the Javadoc of this interface for all the classifiers implementing it).

【讨论】:

  • 这正是我想要的,@atilla-ozgur,我试着去做。非常感谢!
猜你喜欢
  • 2014-06-06
  • 2014-10-29
  • 2017-03-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-10
  • 2015-06-22
  • 1970-01-01
相关资源
最近更新 更多