I've installed weka and the python-weka-wrapper.
I got as far as
from weka.classifiers import Classifier
clf=Classifier(classname="weka.classifiers.rules.JRip")
from random import randint
X = [[randint(1,10) for _ in range(5)] for _ in range(100)]
y = [randint(0,1) for _ in range(100)]
but now I don't know how to load my data which is available as a Python data structure.
How can I load my data matrices, output the rules (in some parsable format) and test the classifier on new data?