Example usage for weka.classifiers.evaluation MarginCurve MarginCurve

List of usage examples for weka.classifiers.evaluation MarginCurve MarginCurve

Introduction

In this page you can find the example usage for weka.classifiers.evaluation MarginCurve MarginCurve.

Prototype

MarginCurve

Source Link

Usage

From source file:adams.data.conversion.WekaEvaluationToMarginCurve.java

License:Open Source License

/**
 * Performs the actual conversion./*from   ww  w. jav  a  2s .com*/
 *
 * @return      the converted data
 * @throws Exception   if something goes wrong with the conversion
 */
@Override
protected Object doConvert() throws Exception {
    Evaluation eval;
    MarginCurve curve;
    Instances cost;

    eval = (Evaluation) m_Input;
    curve = new MarginCurve();
    cost = curve.getCurve(eval.predictions());

    return cost;
}