In the "Select attributes" tag of the Weka Explorer (GUI), there are two options under the "Attribute Selection Mode", i.e. (i) Use full training set; (ii) Cross-validation
I think the code shown on
https://fracpete.github.io/python-weka-wrapper/api.html >>> search = ASSearch(classname="weka.attributeSelection.BestFirst", options=["-D", "1", "-N", "5"])
>>> evaluator = ASEvaluation(classname="weka.attributeSelection.CfsSubsetEval", options=["-P", "1", "-E", "1"])
>>> attsel = AttributeSelection()
>>> attsel.search(search)
>>> attsel.evaluator(evaluator)
>>> attsel.select_attributes(data)
fits for the full training set, i.e. option (i). How can I modify the above for the cross-validation mode in attribute selection. At the same time, how could I display the outcome too?
Any help is greatly appreciated.