|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.weka.evaluator.AbstractInstanceEvaluator
adams.data.weka.evaluator.AbstractDatasetInstanceEvaluator
adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator<IntervalEstimatorBased.SortedInterval>
adams.data.weka.evaluator.IntervalEstimatorBased
public class IntervalEstimatorBased
Uses a classifier that produces confidence intervals. ???
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-threshold <double> (property: threshold) The threshold percentage to use (0-1). default: 0.75
-folds <int> (property: folds) The number of folds to use for cross-validation; cross-validation gets turned off below a value of 2. default: 2
-seed <int> (property: seed) The seed value for randomizing the data for cross-validation. default: 1
-classifier <weka.classifiers.Classifier [options]> (property: classifier) The classifier to use (must implement weka.classifiers.IntervalEstimator ). default: weka.classifiers.functions.GaussianProcesses -L 1.0 -N 0 -K \"weka.classifiers.functions.supportVector.PolyKernel -C 250007 -E 1.0\"
-level <double> (property: confidenceLevel) The confidence level to use when generating the confidence intervals (0- 1). default: 0.95
-relative (property: relativeWidths) If set to true, then the calculated widths will be relative ones, as they will get divided by the class value of the Instance.
| Nested Class Summary | |
|---|---|
static class |
IntervalEstimatorBased.SortedInterval
Helper class for sorting the confidence intervals. |
| Nested classes/interfaces inherited from class adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator |
|---|
AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer |
| Field Summary | |
|---|---|
protected weka.classifiers.Classifier |
m_Classifier
the IntervalEstimator to use. |
protected double |
m_ConfidenceLevel
the confidence level. |
protected double |
m_MaxWidth
the maximum width allowed. |
protected double |
m_MinWidth
the minimum width encountered. |
protected boolean |
m_RelativeWidths
whether to divide the calculated widths by the class value. |
| Fields inherited from class adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator |
|---|
m_Folds, m_Seed |
| Fields inherited from class adams.data.weka.evaluator.AbstractDatasetInstanceEvaluator |
|---|
m_Data, m_Threshold |
| Fields inherited from class adams.data.weka.evaluator.AbstractInstanceEvaluator |
|---|
m_Initialized |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
IntervalEstimatorBased()
|
|
| Method Summary | |
|---|---|
protected static double |
calcAverageWidth(double[][] array)
Calculates the average width of the intervals. |
protected static double |
calcWidth(double[] array)
Calculates the width of the interval. |
String |
classifierTipText()
Returns the tip text for this property. |
String |
confidenceLevelTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected double |
doEvaluate(weka.core.Instance inst)
Performs the actual evaluation. |
protected Vector<IntervalEstimatorBased.SortedInterval> |
evaluate(weka.core.Instances train,
weka.core.Instances test)
Performs an evaluation on the given train and test set. |
protected String |
findThreshold(Vector<IntervalEstimatorBased.SortedInterval> evals)
Finds the threshold based on the collected data. |
weka.classifiers.Classifier |
getClassifier()
Returns the classifier. |
double |
getConfidenceLevel()
Returns the confidence level. |
boolean |
getRelativeWidths()
Returns whether the calculated widths are divided by the class value. |
String |
globalInfo()
Returns a string describing the object. |
String |
relativeWidthsTipText()
Returns the tip text for this property. |
void |
setClassifier(weka.classifiers.Classifier value)
Sets the classifier to use, must implement weka.classifiers.IntervalEstimator. |
void |
setConfidenceLevel(double value)
Sets the confidence level. |
void |
setRelativeWidths(boolean value)
Sets whether to divide the calculated widths by the class value. |
| Methods inherited from class adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator |
|---|
findThreshold, foldsTipText, getFolds, getSeed, seedTipText, setFolds, setSeed |
| Methods inherited from class adams.data.weka.evaluator.AbstractDatasetInstanceEvaluator |
|---|
cleanUp, getData, getThreshold, reset, setData, setThreshold, setUp, split, thresholdTipText |
| Methods inherited from class adams.data.weka.evaluator.AbstractInstanceEvaluator |
|---|
check, compareTo, destroy, equals, evaluate, forCommandLine, forName, getEvaluators, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.classifiers.Classifier m_Classifier
protected double m_ConfidenceLevel
protected boolean m_RelativeWidths
protected double m_MaxWidth
protected double m_MinWidth
| Constructor Detail |
|---|
public IntervalEstimatorBased()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractCrossvalidatedInstanceEvaluator<IntervalEstimatorBased.SortedInterval>public void setClassifier(weka.classifiers.Classifier value)
value - the classifierpublic weka.classifiers.Classifier getClassifier()
public String classifierTipText()
public void setConfidenceLevel(double value)
value - the confidence level (0-1)public double getConfidenceLevel()
public String confidenceLevelTipText()
public void setRelativeWidths(boolean value)
value - if true then the widths will get divided by the class
value (= relative)public boolean getRelativeWidths()
public String relativeWidthsTipText()
protected String findThreshold(Vector<IntervalEstimatorBased.SortedInterval> evals)
findThreshold in class AbstractCrossvalidatedInstanceEvaluator<IntervalEstimatorBased.SortedInterval>evals - the collected evaluation containers
protected Vector<IntervalEstimatorBased.SortedInterval> evaluate(weka.core.Instances train,
weka.core.Instances test)
evaluate in class AbstractCrossvalidatedInstanceEvaluator<IntervalEstimatorBased.SortedInterval>train - the training settest - the test set
protected double doEvaluate(weka.core.Instance inst)
doEvaluate in class AbstractInstanceEvaluatorinst - the instance to evaluate
protected static double calcWidth(double[] array)
array - the lower and upper bound
protected static double calcAverageWidth(double[][] array)
array - the arrayw with the lower and upper bounds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||