evaluationMethods
Class CalculateLoss

java.lang.Object
  |
  +--evaluationMethods.CalculateLoss
All Implemented Interfaces:
OptionHandler

public class CalculateLoss
extends java.lang.Object
implements OptionHandler

Create Zadrozny's reliability curves from a matlab file containing probabilities.

Version:
$Revision: 1.1$
Author:
David Lindsay (davidl@cs.rhul.ac.uk)

Constructor Summary
CalculateLoss()
           
 
Method Summary
static java.lang.String calculateLossFile(java.lang.String inputFileName)
          Method for calculating Square Loss (decomposed) and log loss
 java.lang.String getInputFileName()
           
 java.lang.String[] getOptions()
          Gets the current settings for data to arff conversion
 java.lang.String getOutputFileName()
           
 boolean inputFileSpecified()
           
 java.util.Enumeration listOptions()
          Returns an enumeration describing the available options
static void main(java.lang.String[] args)
          Testing area for this object
 boolean outputFileSpecified()
           
 void setOptions(java.lang.String[] options)
          Parses a given list of options.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateLoss

public CalculateLoss()
Method Detail

inputFileSpecified

public boolean inputFileSpecified()

outputFileSpecified

public boolean outputFileSpecified()

getInputFileName

public java.lang.String getInputFileName()

getOutputFileName

public java.lang.String getOutputFileName()

calculateLossFile

public static java.lang.String calculateLossFile(java.lang.String inputFileName)
Method for calculating Square Loss (decomposed) and log loss

Parameters:
inputFileName - the input file to be converted

listOptions

public java.util.Enumeration listOptions()
Returns an enumeration describing the available options

Specified by:
listOptions in interface OptionHandler
Returns:
an enumeration of all the available options

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Parses a given list of options. Valid options are:

-i input data file string
-o output arff file string

Specified by:
setOptions in interface OptionHandler
Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported

getOptions

public java.lang.String[] getOptions()
Gets the current settings for data to arff conversion

Specified by:
getOptions in interface OptionHandler
Returns:
an array of strings suitable for passing to setOptions()

main

public static void main(java.lang.String[] args)
Testing area for this object



Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London