Package weka.experiment
Class ResultMatrixSignificance
java.lang.Object
weka.experiment.ResultMatrix
weka.experiment.ResultMatrixSignificance
- All Implemented Interfaces:
Serializable,OptionHandler,RevisionHandler
Only outputs the significance indicators. Can be used for spotting patterns.
Valid options are:
-mean-prec <int> The number of decimals after the decimal point for the mean. (default: 2)
-stddev-prec <int> The number of decimals after the decimal point for the mean. (default: 2)
-col-name-width <int> The maximum width for the column names (0 = optimal). (default: 0)
-row-name-width <int> The maximum width for the row names (0 = optimal). (default: 40)
-mean-width <int> The width of the mean (0 = optimal). (default: 0)
-stddev-width <int> The width of the standard deviation (0 = optimal). (default: 0)
-sig-width <int> The width of the significance indicator (0 = optimal). (default: 0)
-count-width <int> The width of the counts (0 = optimal). (default: 0)
-show-stddev Whether to display the standard deviation column. (default: no)
-show-avg Whether to show the row with averages. (default: no)
-remove-filter Whether to remove the classname package prefixes from the filter names in datasets. (default: no)
-print-col-names Whether to output column names or just numbers representing them. (default: no)
-print-row-names Whether to output row names or just numbers representing them. (default: no)
-enum-col-names Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index). (default: no)
-enum-row-names Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index). (default: no)
- Version:
- $Revision: 8034 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Field Summary
Fields inherited from class weka.experiment.ResultMatrix
LEFT_PARENTHESES, LOSS_STRING, RIGHT_PARENTHESES, SIGNIFICANCE_LOSS, SIGNIFICANCE_TIE, SIGNIFICANCE_WIN, TIE_STRING, WIN_STRING -
Constructor Summary
ConstructorsConstructorDescriptioninitializes the matrix as 1x1 matrix.ResultMatrixSignificance(int cols, int rows) initializes the matrix with the given dimensions.ResultMatrixSignificance(ResultMatrix matrix) initializes the matrix with the values from the given matrix. -
Method Summary
Modifier and TypeMethodDescriptionbooleanreturns the default of whether column names or numbers instead are printed.intreturns the default width for the row names.booleanreturns the default of whether std deviations are displayed or not.returns the name of the output format.Returns the revision string.Returns a string describing the matrix.static voidfor testing only.voidsetShowStdDev(boolean show) sets whether to display the std deviations or not - always false!returns the header of the matrix as a string.returns returns a key for all the col names, for better readability if the names got cut off.returns the matrix as plain text.returns the ranking in a string representation.returns the summary as string.Methods inherited from class weka.experiment.ResultMatrix
addHeader, assign, clear, clearHeader, clearRanking, clearSummary, colNameWidthTipText, countWidthTipText, enumerateColNamesTipText, enumerateRowNamesTipText, getAverage, getColCount, getColHidden, getColName, getColNameWidth, getColOrder, getCount, getCountWidth, getDefaultColNameWidth, getDefaultCountWidth, getDefaultEnumerateColNames, getDefaultEnumerateRowNames, getDefaultMeanPrec, getDefaultMeanWidth, getDefaultPrintRowNames, getDefaultRemoveFilterName, getDefaultShowAverage, getDefaultSignificanceWidth, getDefaultStdDevPrec, getDefaultStdDevWidth, getDisplayCol, getDisplayRow, getEnumerateColNames, getEnumerateRowNames, getHeader, getMean, getMeanPrec, getMeanWidth, getOptions, getPrintColNames, getPrintRowNames, getRemoveFilterName, getRowCount, getRowHidden, getRowName, getRowNameWidth, getRowOrder, getShowAverage, getShowStdDev, getSignificance, getSignificanceCount, getSignificanceWidth, getStdDev, getStdDevPrec, getStdDevWidth, getVisibleColCount, getVisibleRowCount, headerKeys, listOptions, meanPrecTipText, meanWidthTipText, printColNamesTipText, printRowNamesTipText, removeFilterNameTipText, rowNameWidthTipText, setColHidden, setColName, setColNameWidth, setColOrder, setCount, setCountWidth, setEnumerateColNames, setEnumerateRowNames, setMean, setMeanPrec, setMeanWidth, setOptions, setPrintColNames, setPrintRowNames, setRanking, setRemoveFilterName, setRowHidden, setRowName, setRowNameWidth, setRowOrder, setShowAverage, setSignificance, setSignificanceWidth, setSize, setStdDev, setStdDevPrec, setStdDevWidth, setSummary, showAverageTipText, showStdDevTipText, significanceWidthTipText, stdDevPrecTipText, stdDevWidthTipText, toString
-
Constructor Details
-
ResultMatrixSignificance
public ResultMatrixSignificance()initializes the matrix as 1x1 matrix. -
ResultMatrixSignificance
public ResultMatrixSignificance(int cols, int rows) initializes the matrix with the given dimensions.- Parameters:
cols- the number of columnsrows- the number of rows
-
ResultMatrixSignificance
initializes the matrix with the values from the given matrix.- Parameters:
matrix- the matrix to get the values from
-
-
Method Details
-
globalInfo
Returns a string describing the matrix.- Specified by:
globalInfoin classResultMatrix- Returns:
- a description suitable for displaying in the experimenter gui
-
getDisplayName
returns the name of the output format.- Specified by:
getDisplayNamein classResultMatrix- Returns:
- the display name
-
getDefaultPrintColNames
public boolean getDefaultPrintColNames()returns the default of whether column names or numbers instead are printed.- Overrides:
getDefaultPrintColNamesin classResultMatrix- Returns:
- true if names instead of numbers are printed
-
getDefaultRowNameWidth
public int getDefaultRowNameWidth()returns the default width for the row names.- Overrides:
getDefaultRowNameWidthin classResultMatrix- Returns:
- the width
-
getDefaultShowStdDev
public boolean getDefaultShowStdDev()returns the default of whether std deviations are displayed or not.- Overrides:
getDefaultShowStdDevin classResultMatrix- Returns:
- true if the std deviations are displayed
-
setShowStdDev
public void setShowStdDev(boolean show) sets whether to display the std deviations or not - always false!- Overrides:
setShowStdDevin classResultMatrix- Parameters:
show- ignored
-
toStringMatrix
returns the matrix as plain text.- Specified by:
toStringMatrixin classResultMatrix- Returns:
- the matrix
-
toStringHeader
returns the header of the matrix as a string.- Specified by:
toStringHeaderin classResultMatrix- Returns:
- the header
- See Also:
-
ResultMatrix.m_HeaderKeysResultMatrix.m_HeaderValues
-
toStringKey
returns returns a key for all the col names, for better readability if the names got cut off.- Specified by:
toStringKeyin classResultMatrix- Returns:
- the key
-
toStringSummary
returns the summary as string.- Specified by:
toStringSummaryin classResultMatrix- Returns:
- the summary
-
toStringRanking
returns the ranking in a string representation.- Specified by:
toStringRankingin classResultMatrix- Returns:
- the ranking
-
getRevision
Returns the revision string.- Returns:
- the revision
-
main
for testing only.- Parameters:
args- ignored
-