Class PredictionUtils
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.repeated.PredictionUtils
-
public class PredictionUtils extends Object
Helper class for predictions from repeated cross-validation runs.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description PredictionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static adams.data.spreadsheet.SpreadSheet
calcStats(WekaEvaluationContainer[] conts, adams.data.spreadsheet.SpreadSheet additional, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols, boolean addActual)
Generates a spreadsheet with the statistics.static adams.data.spreadsheet.SpreadSheet
calcStats(ResultItem item, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols)
Generates a spreadsheet with the statistics.static adams.data.spreadsheet.SpreadSheet
calcStats(ResultItem item, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols, boolean addActual)
Generates a spreadsheet with the statistics.
-
-
-
Method Detail
-
calcStats
public static adams.data.spreadsheet.SpreadSheet calcStats(ResultItem item, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols)
Generates a spreadsheet with the statistics.- Parameters:
item
- the item to calculate the statistics fromerrors
- for collecting error messagescenterStat
- the center statistics like meanlowerStat
- the lower bound statisticupperStat
- the upper bound statisticnumDecimals
- the number of decimals in the spreadsheet, -1 for no roundinglogger
- for logging problemscols
- for storing the column indices of the computed statistics (center, lower, upper), can be null- Returns:
- the spreadsheet
-
calcStats
public static adams.data.spreadsheet.SpreadSheet calcStats(ResultItem item, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols, boolean addActual)
Generates a spreadsheet with the statistics.- Parameters:
item
- the item to calculate the statistics fromerrors
- for collecting error messagescenterStat
- the center statistics like meanlowerStat
- the lower bound statisticupperStat
- the upper bound statisticnumDecimals
- the number of decimals in the spreadsheet, -1 for no roundinglogger
- for logging problemscols
- for storing the column indices of the computed statistics (center, lower, upper, [actual]), can be nulladdActual
- whether to add the "actual" value in a separate column- Returns:
- the spreadsheet
-
calcStats
public static adams.data.spreadsheet.SpreadSheet calcStats(WekaEvaluationContainer[] conts, adams.data.spreadsheet.SpreadSheet additional, adams.core.MessageCollection errors, CenterStatistic centerStat, LowerStatistic lowerStat, UpperStatistic upperStat, int numDecimals, adams.core.logging.Logger logger, gnu.trove.list.TIntList cols, boolean addActual)
Generates a spreadsheet with the statistics.- Parameters:
conts
- the evaluation containers to calculate the statistics fromadditional
- the additional attributes to transfer, can be nullerrors
- for collecting error messagescenterStat
- the center statistics like meanlowerStat
- the lower bound statisticupperStat
- the upper bound statisticnumDecimals
- the number of decimals in the spreadsheet, -1 for no roundinglogger
- for logging problemscols
- for storing the column indices of the computed statistics (center, lower, upper, [actual]), can be nulladdActual
- whether to add the "actual" value in a separate column- Returns:
- the spreadsheet
-
-