Class AbstractIndexedSplitsRunsPredictions<T>

    • Field Detail

      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
      • m_Stopped

        protected boolean m_Stopped
        whether the evaluation was stopped.
    • Constructor Detail

      • AbstractIndexedSplitsRunsPredictions

        public AbstractIndexedSplitsRunsPredictions()
    • Method Detail

      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • requiresFlowContext

        public abstract boolean requiresFlowContext()
        Returns whether flow context is actually required.
        Returns:
        true if required
      • stopExecution

        public void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable
      • isStopped

        public boolean isStopped()
        Whether the execution has been stopped.
        Specified by:
        isStopped in interface StoppableWithFeedback
        Returns:
        true if stopped
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        The default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        public String check​(T data,
                            IndexedSplitsRuns runs)
        For checking the data.
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        Returns:
        null if passed checks, otherwise error message
      • doGenerate

        protected abstract SpreadSheet doGenerate​(T data,
                                                  IndexedSplitsRuns runs,
                                                  MessageCollection errors)
        Generates predictions by applying the indexed splits runs to the data.
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        errors - for collecting errors
        Returns:
        the generated predictions, null in case of error
      • generate

        public SpreadSheet generate​(T data,
                                    IndexedSplitsRuns runs,
                                    MessageCollection errors)
        Generates predictions by applying the indexed splits runs to the data.
        Specified by:
        generate in interface IndexedSplitsRunsPredictions<T>
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        errors - for collecting errors
        Returns:
        the generated evaluations, null in case of error