Class ModelOutput

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, Serializable

    public class ModelOutput
    extends AbstractOutputGeneratorWithFoldModelsSupport
    Outputs the model if available.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • ModelOutput

        public ModelOutput()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • createOutput

        protected JComponent createOutput​(weka.classifiers.Classifier model,
                                          adams.core.MessageCollection errors)
        Generates the output for the specified model.
        Specified by:
        createOutput in class AbstractOutputGeneratorWithFoldModelsSupport
        Parameters:
        model - the model to generate the output for
        errors - for collecting errors
        Returns:
        the output component, null if failed to generate