用于提供weka.core.Instances
对象的数据库中的文本是否需要符合某种格式?当我尝试使用weka.core.Instances
仅包含未格式化文本(通过数据库从数据库提供weka.experiment.InstanceQuery.query.retrieveInstances()
)作为其非类属性的对象构建分类器时,我得到以下异常:
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)