如何在Weka包装器中而不是Arff文件中使用Pandas Datafames?

时间:2018-08-30 07:49:10

标签: python weka

我是这个Weka包装程序的新手,正在尝试将属性选择算法应用于熊猫的数据框bowDataFrame。请帮忙。 `

jvm.start(packages=True)
search = ASSearch(classname="weka.attributeSelection.BestFirst", options=["-D", "1", "-N", "5"])
evaluator = ASEvaluation(classname="weka.attributeSelection.CfsSubsetEval", options=["-P", "1", "-E", "1"])
print("We are here")
attsel = AttributeSelection()
attsel.search(search)
attsel.evaluator(evaluator)
attsel.select_attributes(bowDataFrame)`

0 个答案:

没有答案