Class InstancesIndexedSplitsRunsPredictions

    • Field Detail

      • m_TrainSplitName

        protected String m_TrainSplitName
        the split to use for training.
      • m_TestSplitName

        protected String m_TestSplitName
        the split to use for testing.
      • m_ManualClassifier

        protected weka.classifiers.Classifier m_ManualClassifier
        a programmatically supplied classifier.
    • Constructor Detail

      • InstancesIndexedSplitsRunsPredictions

        public InstancesIndexedSplitsRunsPredictions()
    • Method Detail

      • setTrainSplitName

        public void setTrainSplitName​(String value)
        Sets the name of the split to use for training.
        Parameters:
        value - the name
      • getTrainSplitName

        public String getTrainSplitName()
        Returns the name of the split to use for training.
        Returns:
        the name
      • trainSplitNameTipText

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

        public void setTestSplitName​(String value)
        Sets the name of the split to use for testing, ie generating predictions.
        Parameters:
        value - the name
      • getTestSplitName

        public String getTestSplitName()
        Returns the name of the split to use for testing, ie generating predictions.
        Returns:
        the name
      • testSplitNameTipText

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

        public void setClassifier​(CallableActorReference value)
        Sets the name of the callable classifier to use.
        Parameters:
        value - the name
      • getClassifier

        public CallableActorReference getClassifier()
        Returns the name of the callable classifier in use.
        Returns:
        the name
      • classifierTipText

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

        public void setManualClassifier​(weka.classifiers.Classifier value)
        Sets the manual classifier to use instead of obtaining it from the flow.
        Parameters:
        value - the classifier
      • getManualClassifier

        public weka.classifiers.Classifier getManualClassifier()
        Returns the manual to use instead of obtaining it from the flow.
        Returns:
        the classifier
      • accepts

        public Class accepts()
        The accepted classes.
        Returns:
        the array of accepted types
      • check

        public String check​(weka.core.Instances data,
                            IndexedSplitsRuns runs)
        For checking the data.
        Overrides:
        check in class AbstractIndexedSplitsRunsPredictions<weka.core.Instances>
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        Returns:
        null if passed checks, otherwise error message
      • getClassifierInstance

        protected weka.classifiers.Classifier getClassifierInstance​(MessageCollection errors)
        Returns an instance of the callable classifier.
        Parameters:
        errors - for collecting errors
        Returns:
        the classifier
      • applyIndexedSplit

        protected Map<String,​weka.core.Instances> applyIndexedSplit​(IndexedSplit indexedSplit,
                                                                          weka.core.Instances data)
        Applies the splits defined in the indexed split and returns the generated subsets.
        Parameters:
        indexedSplit - the run to apply
        data - the data to obtain the subsets from
        Returns:
        the generated splits
      • doGenerate

        protected SpreadSheet doGenerate​(weka.core.Instances data,
                                         IndexedSplitsRuns runs,
                                         MessageCollection errors)
        Generates predictions by applying the indexed splits runs to the data.
        Specified by:
        doGenerate in class AbstractIndexedSplitsRunsPredictions<weka.core.Instances>
        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