0
数据库中用于提供weka.core.Instances
对象的文本是否需要符合某种格式?当我尝试建立一个weka.core.Instances
对象仅包含未格式化的文本(通过weka.experiment.InstanceQuery.query.retrieveInstances()
从数据库喂)作为其非类属性我得到下面的异常分类:weka数据库中的文本格式
Exception in thread "main"
weka.core.UnsupportedAttributeTypeException:
weka.classifiers.functions.SMO: Cannot handle numeric class! at
weka.core.Capabilities.test(Unknown Source) at
weka.core.Capabilities.test(Unknown Source) at
weka.core.Capabilities.test(Unknown Source) at
weka.core.Capabilities.testWithFail(Unknown Source) at
weka.classifiers.functions.SMO.buildClassifier(Unknown Source) at
Test.main(Test.java:135)