我是这个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)`