weka.classifiers.m5
Class Measures

java.lang.Object
  |
  +--weka.classifiers.m5.Measures

public final class Measures
extends Object

Class for performance measures

Version:
$Revision: 1.4 $
Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Constructor Summary
Measures()
          Constructs a Measures object which could containing the performance measures
 
Method Summary
 void incremental(Measures m)
          Adds up performance measures for cross-validation
 String toString(double absDev, double sd, String set, String smooth)
          Converts the performance measures to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Measures

public Measures()
Constructs a Measures object which could containing the performance measures

Method Detail

toString

public final String toString(double absDev,
                             double sd,
                             String set,
                             String smooth)
Converts the performance measures to a string

Parameters:
absDev - the absolute deviation of the class attribute
sd - the standard deviation of the class attribute
set - the type of the performance measures, is one of "t","T","f","F","x", for training, test, training of one fold in cross-validation, test of one test in cross-validation, cross-validation final resuls respectively
smooth - either "u" or "s" for unsmoothed or smoothed
Returns:
the converted string

incremental

public final void incremental(Measures m)
Adds up performance measures for cross-validation

Parameters:
m - performance measures of a fold