Package weka.classifiers.trees

Examples of weka.classifiers.trees.M5P


      // E.g., the XRFF format saves the class attribute information as well
      if (data.classIndex() == -1)
        data.setClass(data.attribute(attribute));
     
      // train M5P
      cl = new M5P();
      cl.setBuildRegressionTree(true);
      cl.setUnpruned(false);
      cl.setUseUnsmoothed(false);
      // further options...
      cl.buildClassifier(data);
View Full Code Here


        String[] argv  = new String[2];
        argv[0] = "-t";
        //argv[1] = "d:/weather.arff";
        //sbWeka.append(Evaluation.evaluateModel(new J48(), argv));
        argv[1] = "d:/cpu.arff";
        sbWeka.append(Evaluation.evaluateModel(new M5P(), argv));
        } catch (Exception e) {
          sbWeka.append(e.getMessage());
        }
    Map<String, Object> myModel = new HashMap<String, Object>();
    myModel.put("weka", sbWeka);
View Full Code Here

TOP

Related Classes of weka.classifiers.trees.M5P

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.