Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import weka.classifiers.trees.J48;
  2. import weka.classifiers.Evaluation;
  3. import weka.classifiers.rules.MultiObjectiveEvolutionaryFuzzyClassifier;
  4.  
  5. public class MOEFC {
  6.  
  7. public static void main(String[] args) throws Exception {
  8.  
  9. ///java -cp weka.jar weka.classifiers.trees.J48 -t data1.arff
  10.  
  11. /// java -cp weka.jar weka.Run MultiObjectiveEvolutionaryFuzzyClassifier -t wisconsin.arff > data.out
  12.  
  13.  
  14.  
  15. String[] options = new String[2];
  16. options[0] = "-t";
  17. options[1] = "data.arff";
  18. ///System.out.println(Evaluation.evaluateModel(new J48(), options));
  19.  
  20. System.out.println(Evaluation.evaluateModel(new MultiObjectiveEvolutionaryFuzzyClassifier(), options));
  21.  
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement