Package weka.experiment
Class PairedCorrectedTTester
java.lang.Object
weka.experiment.PairedTTester
weka.experiment.PairedCorrectedTTester
- All Implemented Interfaces:
Serializable
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
,Tester
Behaves the same as PairedTTester, only it uses the corrected resampled
t-test statistic.
For more information see:
Claude Nadeau, Yoshua Bengio (2001).
Inference for the Generalization Error. Machine Learning..
BibTeX:
@article{Nadeau2001, author = {Claude Nadeau and Yoshua Bengio}, journal = {Machine Learning}, title = {Inference for the Generalization Error}, year = {2001}, PDF = {http://www.iro.umontreal.ca/\~lisa/bib/pub_subject/comparative/pointeurs/nadeau_MLJ1597.pdf} }Valid options are:
-D <index,index2-index4,...> Specify list of columns that specify a unique dataset. First and last are valid indexes. (default none)
-R <index> Set the index of the column containing the run number
-F <index> Set the index of the column containing the fold number
-G <index1,index2-index4,...> Specify list of columns that specify a unique 'result generator' (eg: classifier name and options). First and last are valid indexes. (default none)
-S <significance level> Set the significance level for comparisons (default 0.05)
-V Show standard deviations
-L Produce table comparisons in Latex table format
-csv Produce table comparisons in CSV table format
-html Produce table comparisons in HTML table format
-significance Produce table comparisons with only the significance values
-gnuplot Produce table comparisons output suitable for GNUPlot
- Version:
- $Revision: 10203 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateStatistics
(Instance datasetSpecifier, int resultset1Index, int resultset2Index, int comparisonColumn) Computes a paired t-test comparison for a specified dataset between two resultsets.returns the name of the testerReturns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.returns a string that is displayed as tooltip on the "perform test" button in the experimenterstatic void
Test the class from the command line.Methods inherited from class weka.experiment.PairedTTester
assign, displayResultset, getDatasetKeyColumns, getDisplayedResultsets, getFoldColumn, getInstances, getNumDatasets, getNumResultsets, getOptions, getResultMatrix, getResultsetKeyColumns, getResultsetName, getRunColumn, getShowStdDevs, getSignificanceLevel, getSortColumn, getSortColumnName, header, listOptions, multiResultsetFull, multiResultsetRanking, multiResultsetSummary, multiResultsetWins, resultsetKey, setDatasetKeyColumns, setDisplayedResultsets, setFoldColumn, setInstances, setOptions, setResultMatrix, setResultsetKeyColumns, setRunColumn, setShowStdDevs, setSignificanceLevel, setSortColumn
-
Constructor Details
-
PairedCorrectedTTester
public PairedCorrectedTTester()
-
-
Method Details
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformation
in interfaceTechnicalInformationHandler
- Returns:
- the technical information about this class
-
calculateStatistics
public PairedStats calculateStatistics(Instance datasetSpecifier, int resultset1Index, int resultset2Index, int comparisonColumn) throws Exception Computes a paired t-test comparison for a specified dataset between two resultsets.- Specified by:
calculateStatistics
in interfaceTester
- Overrides:
calculateStatistics
in classPairedTTester
- Parameters:
datasetSpecifier
- the dataset specifierresultset1Index
- the index of the first resultsetresultset2Index
- the index of the second resultsetcomparisonColumn
- the column containing values to compare- Returns:
- the results of the paired comparison
- Throws:
Exception
- if an error occurs
-
main
Test the class from the command line.- Parameters:
args
- contains options for the instance ttests
-
getDisplayName
returns the name of the tester- Specified by:
getDisplayName
in interfaceTester
- Overrides:
getDisplayName
in classPairedTTester
- Returns:
- the display name
-
getToolTipText
returns a string that is displayed as tooltip on the "perform test" button in the experimenter- Specified by:
getToolTipText
in interfaceTester
- Overrides:
getToolTipText
in classPairedTTester
- Returns:
- the string for the tool tip
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classPairedTTester
- Returns:
- the revision
-