Class EvaluationContainer

  • All Implemented Interfaces:
    adams.core.CloneHandler<adams.flow.container.Container>, adams.core.GlobalInfoSupporter, adams.data.spreadsheet.SpreadSheetSupporter, adams.flow.container.Container, adams.flow.container.ContainerWithReport, Serializable

    public class EvaluationContainer
    extends adams.flow.container.AbstractContainer
    implements adams.flow.container.ContainerWithReport
    Container for evaluations.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initHelp()
      Initializes the help strings.
      boolean isValid()
      Checks whether the setup of the container is valid.
      Iterator<String> names()
      Returns all value names that can be used (theoretically).
      • Methods inherited from class adams.flow.container.AbstractContainer

        addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getClone, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
      • Methods inherited from interface adams.flow.container.Container

        addAdditionalName, addHelp, addHelp, addHelp, getClone, getHelp, getValue, getValue, hasHelp, hasValue, removeAdditionalName, setValue, stored, toSpreadSheet, toString
      • Methods inherited from interface adams.core.GlobalInfoSupporter

        globalInfo
    • Constructor Detail

      • EvaluationContainer

        public EvaluationContainer()
        Default constructor.
      • EvaluationContainer

        public EvaluationContainer​(weka.core.Instance inst)
        Initializes the container with the WEKA instance.
        Parameters:
        inst - the instance
      • EvaluationContainer

        public EvaluationContainer​(weka.core.Instance inst,
                                   Map<String,​Object> evaluations)
        Initializes the container with the WEKA instance.
        Parameters:
        inst - the instance
        evaluations - the associated evaluations
      • EvaluationContainer

        public EvaluationContainer​(weka.core.Instances inst)
        Initializes the container with the WEKA instances.
        Parameters:
        inst - the instances
    • Method Detail

      • initHelp

        protected void initHelp()
        Initializes the help strings.
        Overrides:
        initHelp in class adams.flow.container.AbstractContainer
      • names

        public Iterator<String> names()
        Returns all value names that can be used (theoretically).
        Specified by:
        names in interface adams.flow.container.Container
        Specified by:
        names in class adams.flow.container.AbstractContainer
        Returns:
        enumeration over all possible value names
      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface adams.flow.container.Container
        Specified by:
        isValid in class adams.flow.container.AbstractContainer
        Returns:
        true if all the necessary values are available