All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.evaluation.MarginCurve

java.lang.Object
    |
    +----weka.classifiers.evaluation.MarginCurve

public class MarginCurve
extends java.lang.Object
Generates points illustrating the prediction margin. The margin is defined as the difference between the probability predicted for the actual class and the highest probability predicted for the other classes. One hypothesis as to the good performance of boosting algorithms is that they increaes the margins on the training data and this gives better performance on test data.

Version:
$Revision: 1.5 $
Author:
Len Trigg (len@intelligenesis.net)

Constructor Index

 o MarginCurve()
 

Method Index

 o getCurve(FastVector)
Calculates the cumulative margin distribution for the set of predictions, returning the result as a set of Instances.
 o main(String[])
Tests the MarginCurve generation from the command line.

Constructor Detail

 o MarginCurve
public MarginCurve()

Method Detail

 o getCurve
public Instances getCurve(FastVector predictions)
          Calculates the cumulative margin distribution for the set of predictions, returning the result as a set of Instances. The structure of these Instances is as follows:

Returns:
datapoints as a set of instances, null if no predictions have been made.
 o main
public static void main(java.lang.String args[])
          Tests the MarginCurve generation from the command line. The classifier is currently hardcoded. Pipe in an arff file.
Parameters:
args - currently ignored

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home