some code example of classifier generalization based on weka