Class AbstractActualVsPredictedProcessor<T>

    • Constructor Detail

      • AbstractActualVsPredictedProcessor

        public AbstractActualVsPredictedProcessor()
    • Method Detail

      • check

        public String check​(SpreadSheet sheet)
        Checks whether the data can be processed.
        Parameters:
        sheet - the data to check
        Returns:
        null if checks passed, otherwise error message
      • getActualNumeric

        protected double[] getActualNumeric​(SpreadSheet sheet)
        Returns the actual numeric values.
        Parameters:
        sheet - the sheet to extract the values from
        Returns:
        the values
      • getPredictedNumeric

        protected double[] getPredictedNumeric​(SpreadSheet sheet)
        Returns the predicted numeric values.
        Parameters:
        sheet - the sheet to extract the values from
        Returns:
        the values
      • getAdditional

        protected String[] getAdditional​(SpreadSheet sheet)
        Returns the additional values, row indices if no additional columns.
        Parameters:
        sheet - the sheet to extract data from
        Returns:
        the values
      • doProcess

        protected abstract T doProcess​(SpreadSheet sheet)
        Processes the actual vs predicted data and returns the output generated.
        Parameters:
        sheet - the data to process
        Returns:
        the output
      • process

        public T process​(SpreadSheet sheet,
                         MessageCollection errors)
        Processes the actual vs predicted data and returns the output generated.
        Specified by:
        process in interface ActualVsPredictedProcessor<T>
        Parameters:
        sheet - the data to process
        errors - for collecting errors
        Returns:
        the output, null in case of error