|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.experiment.ResultMatrix
weka.experiment.ResultMatrixMediaWiki
public class ResultMatrixMediaWiki
Generates table output in MediaWiki format.
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: 25)
-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)
-border <int> The thickness of the table border. (default: 1)
-cell-spacing <int> The cell spacing of the table. (default: 0)
-cell-padding <int> The cell padding of the table. (default: 5)
| Field Summary | |
|---|---|
protected int |
m_Border
the size of the border. |
protected int |
m_CellPadding
the cell padding. |
protected int |
m_CellSpacing
the cell spacing. |
| Fields inherited from class weka.experiment.ResultMatrix |
|---|
LEFT_PARENTHESES, LOSS_STRING, m_ColHidden, m_ColNames, m_ColNameWidth, m_ColOrder, m_Counts, m_CountWidth, m_EnumerateColNames, m_EnumerateRowNames, m_HeaderKeys, m_HeaderValues, m_Mean, m_MeanPrec, m_MeanWidth, m_NonSigWins, m_PrintColNames, m_PrintRowNames, m_RankingDiff, m_RankingLosses, m_RankingWins, m_RemoveFilterName, m_RowHidden, m_RowNames, m_RowNameWidth, m_RowOrder, m_ShowAverage, m_ShowStdDev, m_Significance, m_SignificanceWidth, m_StdDev, m_StdDevPrec, m_StdDevWidth, m_Wins, RIGHT_PARENTHESES, SIGNIFICANCE_LOSS, SIGNIFICANCE_TIE, SIGNIFICANCE_WIN, TIE_STRING, WIN_STRING |
| Constructor Summary | |
|---|---|
ResultMatrixMediaWiki()
initializes the matrix as 1x1 matrix. |
|
ResultMatrixMediaWiki(int cols,
int rows)
initializes the matrix with the given dimensions. |
|
ResultMatrixMediaWiki(weka.experiment.ResultMatrix matrix)
initializes the matrix with the values from the given matrix. |
|
| Method Summary | |
|---|---|
String |
borderTipText()
Returns the tip text for this property. |
String |
cellPaddingTipText()
Returns the tip text for this property. |
String |
cellSpacingTipText()
Returns the tip text for this property. |
int |
getBorder()
Returns the thickness of the border. |
int |
getCellPadding()
Returns the cell padding for the table. |
int |
getCellSpacing()
Returns the cell spacing for the table. |
protected int |
getDefaultBorder()
Returns the default border thickness of the table. |
protected int |
getDefaultCellPadding()
Returns the default cell padding for the table. |
protected int |
getDefaultCellSpacing()
Returns the default cell spacing for the table. |
boolean |
getDefaultEnumerateColNames()
returns the default of whether column names are prefixed with the index. |
boolean |
getDefaultPrintColNames()
returns the default of whether column names or numbers instead are printed. |
int |
getDefaultRowNameWidth()
returns the default width for the row names. |
String |
getDisplayName()
returns the name of the output format. |
String[] |
getOptions()
Gets the current option settings for the OptionHandler. |
String |
getRevision()
Returns the revision string. |
protected String |
getTableEpilog()
Returns the epilog for a table. |
protected String |
getTableProlog()
Returns the prolog of a table. |
String |
globalInfo()
Returns a string describing the matrix. |
Enumeration |
listOptions()
Returns an enumeration of all the available options.. |
static void |
main(String[] args)
for testing only. |
void |
setBorder(int value)
Sets the thickness of the border. |
void |
setCellPadding(int value)
Sets the cell padding for the table. |
void |
setCellSpacing(int value)
Sets the cell spacing for the table. |
void |
setOptions(String[] options)
Sets the OptionHandler's options using the given list. |
String |
toStringHeader()
returns the header of the matrix as a string. |
String |
toStringKey()
returns a key for all the col names, for better readability if the names got cut off. |
String |
toStringMatrix()
returns the matrix in CSV format. |
String |
toStringRanking()
returns the ranking in a string representation. |
String |
toStringSummary()
returns the summary as string. |
| Methods inherited from class weka.experiment.ResultMatrix |
|---|
addHeader, assign, clear, clearHeader, clearRanking, clearSummary, colNameWidthTipText, countWidthTipText, doubleToString, enumerateColNamesTipText, enumerateRowNamesTipText, getAverage, getColCount, getColHidden, getColName, getColNameWidth, getColOrder, getColSize, getColSize, getCount, getCountWidth, getDefaultColNameWidth, getDefaultCountWidth, getDefaultEnumerateRowNames, getDefaultMeanPrec, getDefaultMeanWidth, getDefaultPrintRowNames, getDefaultRemoveFilterName, getDefaultShowAverage, getDefaultShowStdDev, getDefaultSignificanceWidth, getDefaultStdDevPrec, getDefaultStdDevWidth, getDisplayCol, getDisplayRow, getEnumerateColNames, getEnumerateRowNames, getHeader, getMean, getMeanPrec, getMeanWidth, getPrintColNames, getPrintRowNames, getRemoveFilterName, getRowCount, getRowHidden, getRowName, getRowNameWidth, getRowOrder, getShowAverage, getShowStdDev, getSignificance, getSignificanceCount, getSignificanceWidth, getStdDev, getStdDevPrec, getStdDevWidth, getSummaryTitle, getVisibleColCount, getVisibleRowCount, headerKeys, isAverage, isMean, isRowName, isSignificance, isStdDev, meanPrecTipText, meanWidthTipText, padString, padString, printColNamesTipText, printRowNamesTipText, removeFilterName, removeFilterNameTipText, rowNameWidthTipText, setColHidden, setColName, setColNameWidth, setColOrder, setCount, setCountWidth, setEnumerateColNames, setEnumerateRowNames, setMean, setMeanPrec, setMeanWidth, setPrintColNames, setPrintRowNames, setRanking, setRemoveFilterName, setRowHidden, setRowName, setRowNameWidth, setRowOrder, setShowAverage, setShowStdDev, setSignificance, setSignificanceWidth, setSize, setStdDev, setStdDevPrec, setStdDevWidth, setSummary, showAverageTipText, showStdDevTipText, significanceWidthTipText, stdDevPrecTipText, stdDevWidthTipText, toArray, toString, trimString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_Border
protected int m_CellSpacing
protected int m_CellPadding
| Constructor Detail |
|---|
public ResultMatrixMediaWiki()
public ResultMatrixMediaWiki(int cols,
int rows)
cols - the number of columnsrows - the number of rowspublic ResultMatrixMediaWiki(weka.experiment.ResultMatrix matrix)
matrix - the matrix to get the values from| Method Detail |
|---|
public String globalInfo()
globalInfo in class weka.experiment.ResultMatrixpublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.experiment.ResultMatrix
public void setOptions(String[] options)
throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.experiment.ResultMatrixoptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.experiment.ResultMatrixpublic String getDisplayName()
getDisplayName in class weka.experiment.ResultMatrixpublic int getDefaultRowNameWidth()
getDefaultRowNameWidth in class weka.experiment.ResultMatrixpublic boolean getDefaultPrintColNames()
getDefaultPrintColNames in class weka.experiment.ResultMatrixpublic boolean getDefaultEnumerateColNames()
getDefaultEnumerateColNames in class weka.experiment.ResultMatrixprotected int getDefaultBorder()
public void setBorder(int value)
value - the thicknesspublic int getBorder()
public String borderTipText()
protected int getDefaultCellSpacing()
public void setCellSpacing(int value)
value - the cell spacingpublic int getCellSpacing()
public String cellSpacingTipText()
protected int getDefaultCellPadding()
public void setCellPadding(int value)
value - the cell paddingpublic int getCellPadding()
public String cellPaddingTipText()
protected String getTableProlog()
protected String getTableEpilog()
public String toStringHeader()
toStringHeader in class weka.experiment.ResultMatrixResultMatrix.m_HeaderKeys,
ResultMatrix.m_HeaderValuespublic String toStringMatrix()
toStringMatrix in class weka.experiment.ResultMatrixpublic String toStringKey()
toStringKey in class weka.experiment.ResultMatrixpublic String toStringSummary()
toStringSummary in class weka.experiment.ResultMatrixpublic String toStringRanking()
toStringRanking in class weka.experiment.ResultMatrixpublic String getRevision()
public static void main(String[] args)
args - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||