Re: Filter dataset by column value Wrapper Python
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <163549572111.6634.17784482826286325893@sys-mailman-prd.its.waikato.ac.nz> |
You were right, it was the attribute location.
Now, I get an error from this line:
subdata = f.filter(data)
The error is:
JavaException: Variable 'ATT5' is undefined!
this is the part of the code:
Filter(classname="weka.filters.unsupervised.instance.SubsetByExpression",
options=["-E", "ATT5 is '%s'" % val])
f.inputformat(data)
I want to filter by the variable "vehicle_id", it goes from 0 to 2453. I've checked the iris.arff and none ATT5 is defined.
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html