Class WekaPredictionContainer

    • Field Detail

      • VALUE_CLASSIFICATION

        public static final String VALUE_CLASSIFICATION
        the identifier for the Classification.
        See Also:
        Constant Field Values
      • VALUE_CLASSIFICATION_LABEL

        public static final String VALUE_CLASSIFICATION_LABEL
        the identifier for the Classification's label.
        See Also:
        Constant Field Values
      • VALUE_DISTRIBUTION

        public static final String VALUE_DISTRIBUTION
        the identifier for the Distribution.
        See Also:
        Constant Field Values
      • VALUE_ABSTENTION_CLASSIFICATION

        public static final String VALUE_ABSTENTION_CLASSIFICATION
        the identifier for the classification of an abstaining classifier.
        See Also:
        Constant Field Values
      • VALUE_ABSTENTION_CLASSIFICATION_LABEL

        public static final String VALUE_ABSTENTION_CLASSIFICATION_LABEL
        the identifier for the classification label of an abstaining classifier.
        See Also:
        Constant Field Values
      • VALUE_ABSTENTION_DISTRIBUTION

        public static final String VALUE_ABSTENTION_DISTRIBUTION
        the identifier for the distribution of an abstaining classifier.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WekaPredictionContainer

        public WekaPredictionContainer()
        Initializes the container.

        Only used for generating help information.
      • WekaPredictionContainer

        public WekaPredictionContainer​(weka.core.Instance inst,
                                       double cls,
                                       double[] dist)
        Initializes the container.
        Parameters:
        inst - the instance that was used for prediction
        cls - the classification
        dist - the class distribution
      • WekaPredictionContainer

        public WekaPredictionContainer​(weka.core.Instance inst,
                                       double cls,
                                       double[] dist,
                                       String rangeCheck)
        Initializes the container.
        Parameters:
        inst - the instance that was used for prediction
        cls - the classification
        dist - the class distribution
        rangeCheck - the range check, null if not available
    • Method Detail

      • isValid

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