类 MarginCurve
java.lang.Object
weka.classifiers.evaluation.MarginCurve
- 所有已实现的接口:
RevisionHandler
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.
- 版本:
- $Revision: 1.11 $
- 作者:
- Len Trigg (len@reeltwo.com)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getCurve
(FastVector predictions) Calculates the cumulative margin distribution for the set of predictions, returning the result as a set of Instances.Returns the revision string.static void
Tests the MarginCurve generation from the command line.
-
构造器详细资料
-
MarginCurve
public MarginCurve()
-
-
方法详细资料
-
getCurve
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:- Margin contains the margin value (which should be plotted as an x-coordinate)
- Current contains the count of instances with the current margin (plot as y axis)
- Cumulative contains the count of instances with margin less than or equal to the current margin (plot as y axis)
- 返回:
- datapoints as a set of instances, null if no predictions have been made.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Tests the MarginCurve generation from the command line. The classifier is currently hardcoded. Pipe in an arff file.- 参数:
args
- currently ignored
-