Class AbstractRegressor

    • Field Detail

      • m_StrictCapabilities

        protected boolean m_StrictCapabilities
        whether to use strict capability tests.
    • Constructor Detail

      • AbstractRegressor

        public AbstractRegressor()
    • Method Detail

      • setStrictCapabilities

        public void setStrictCapabilities​(boolean value)
        Sets whether to use a strict capabilities check.
        Parameters:
        value - true if to use strict check
      • getStrictCapabilities

        public boolean getStrictCapabilities()
        Returns whether to use a strict capabilities check.
        Returns:
        true if to use strict check
      • strictCapabilitiesTipText

        public String strictCapabilitiesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • handles

        public String handles​(Dataset data,
                              boolean strict)
        Checks whether the data can be handled.
        Specified by:
        handles in interface Algorithm<RegressionModel>
        Parameters:
        data - the data to check
        strict - whether to perform a strict check
        Returns:
        null if data can be handled, otherwise error message
      • check

        protected Dataset check​(Dataset data)
                         throws Exception
        Performs checks on the data.
        Parameters:
        data - the data to check
        Returns:
        the potentially adjusted data
        Throws:
        Exception - if checks fail
      • doBuildModel

        protected abstract RegressionModel doBuildModel​(Dataset data)
                                                 throws Exception
        Builds a model from the data.
        Parameters:
        data - the data to use for building the model
        Returns:
        the generated model
        Throws:
        Exception - if the build fails