Example usage for weka.classifiers Evaluation toCumulativeMarginDistributionString

List of usage examples for weka.classifiers Evaluation toCumulativeMarginDistributionString

Introduction

In this page you can find the example usage for weka.classifiers Evaluation toCumulativeMarginDistributionString.

Prototype

public String toCumulativeMarginDistributionString() throws Exception 

Source Link

Document

Output the cumulative margin distribution as a string suitable for input for gnuplot or similar package.

Usage

From source file:sentinets.TrainModel.java

License:Open Source License

public void trainModel(Classifier c, String name) {
    Evaluation e;
    try {/*from   w  w w .  j av a2  s .  c o m*/
        e = new Evaluation(ins);
        e.crossValidateModel(c, ins, 10, new Random(1));
        System.out.println("****Results of " + name + "****");
        System.out.println(e.toSummaryString());
        System.out.println(e.toClassDetailsString());
        System.out.println(e.toCumulativeMarginDistributionString());
        System.out.println(e.toMatrixString());
        System.out.println("*********************");
        TrainModel.saveModel(c, name);
    } catch (Exception e1) {
        e1.printStackTrace();
    }

}