|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--confidenceMachine.ConfidenceClassifier | +--confidenceMachine.tcm.TCMBartsRMI
The TCM Barts RMI algorithm
Constructor Summary | |
TCMBartsRMI()
The amazing TCM Barts RMI classifier |
|
TCMBartsRMI(double rmit)
The amazing TCM Barts RMI classifier |
Method Summary | |
void |
buildClassifier(Instances instances)
Generates the classifier. |
double |
calculateRMI(Instance instance)
Calculates the Risk of Malignancy Index find ref ? (Jacobs et al) |
java.lang.String[] |
getOptions()
Gets the current settings of TCM. |
double |
getRMIThreshold()
Gets the currently set RMI threshold |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
double[] |
pValuesForInstance(Instance instance)
Returns the p-values for a given test instance. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setRMIThreshold(double rmit)
Sets the RMI threshold |
java.lang.String |
toString()
Returns a description of this classifier. |
Methods inherited from class confidenceMachine.ConfidenceClassifier |
calculateConfidenceAndCredibility, calculatePValue, calculatePValue, classifyInstance, returnRegionPrediction |
Methods inherited from class weka.classifiers.Classifier |
debugTipText, distributionForInstance, forName, getDebug, makeCopies, setDebug |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TCMBartsRMI(double rmit)
rmit
- the RMI threshold usedpublic TCMBartsRMI()
Method Detail |
public void setRMIThreshold(double rmit)
public double getRMIThreshold()
public void buildClassifier(Instances instances) throws java.lang.Exception
buildClassifier
in class Classifier
instances
- set of instances serving as training data
java.lang.Exception
- if the classifier has not been generated successfullypublic java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Classifier
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-R threshold
Set the threshold for the RMI
(default: 250)
setOptions
in interface OptionHandler
setOptions
in class Classifier
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Classifier
public double calculateRMI(Instance instance)
public double[] pValuesForInstance(Instance instance) throws java.lang.Exception
pValuesForInstance
in class ConfidenceClassifier
instance
- the instance to be classified
java.lang.Exception
- no training instancespublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
argv
- should contain command line arguments for evaluation
(see Evaluation).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London