Class FromPredictions

    • Field Detail

      • m_PredictionsFile

        protected PlaceholderFile m_PredictionsFile
        the predictions to use.
      • m_ActualIndex

        protected int m_ActualIndex
        the actual column index.
      • m_PredictedIndex

        protected int m_PredictedIndex
        the predicted column index.
      • m_WeightIndex

        protected int m_WeightIndex
        the weight column index.
      • m_ClassDistributionIndices

        protected int[] m_ClassDistributionIndices
        the class distribution column indices.
      • m_Additional

        protected SpreadSheetColumnRange m_Additional
        the additional columns in the spreadsheet to add to the plot containers.
      • m_AdditionalIndices

        protected int[] m_AdditionalIndices
        the additional column indices.
      • m_Predictions

        protected SpreadSheet m_Predictions
        the actual predictions.
    • Constructor Detail

      • FromPredictions

        public FromPredictions()
    • Method Detail

      • setPredictionsFile

        public void setPredictionsFile​(PlaceholderFile value)
        Sets the file with the predictions.
        Parameters:
        value - the file
      • getPredictionsFile

        public PlaceholderFile getPredictionsFile()
        Returns the file with the predictions.
        Returns:
        the file
      • predictionsFileTipText

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

        public void setReader​(SpreadSheetReader value)
        Sets the spreadsheet reader to use.
        Parameters:
        value - the reader
      • getReader

        public SpreadSheetReader getReader()
        Returns the spreadsheet reader to use.
        Returns:
        the reader
      • readerTipText

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

        public void setActual​(SpreadSheetColumnIndex value)
        Sets the column with the actual values.
        Parameters:
        value - the column
      • getActual

        public SpreadSheetColumnIndex getActual()
        Returns the column with the actual values.
        Returns:
        the range
      • actualTipText

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

        public void setPredicted​(SpreadSheetColumnIndex value)
        Sets the column with the predicted values.
        Parameters:
        value - the column
      • getPredicted

        public SpreadSheetColumnIndex getPredicted()
        Returns the column with the predicted values.
        Returns:
        the range
      • predictedTipText

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

        public void setWeight​(SpreadSheetColumnIndex value)
        Sets the column with the weight values.
        Parameters:
        value - the column
      • getWeight

        public SpreadSheetColumnIndex getWeight()
        Returns the column with the weight values.
        Returns:
        the column
      • weightTipText

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

        public void setClassDistribution​(SpreadSheetUnorderedColumnRange value)
        Sets the class distribution columns.
        Parameters:
        value - the columns
      • classDistributionTipText

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

        public void setAdditional​(SpreadSheetColumnRange value)
        Sets the additional columns to add to the plot containers.
        Parameters:
        value - the columns
      • getAdditional

        public SpreadSheetColumnRange getAdditional()
        Returns the additional columns to add to the plot containers.
        Returns:
        the columns
      • additionalTipText

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

        public SpreadSheet getPredictions()
        Returns the predictions that were loaded.
        Returns:
        the predictions, null if not available
      • getActualIndex

        public int getActualIndex()
        Returns the actual 0-based index.
        Returns:
        the index, -1 if not initialized
      • getPredictedIndex

        public int getPredictedIndex()
        Returns the predicted 0-based index.
        Returns:
        the index, -1 if not initialized
      • getWeightIndex

        public int getWeightIndex()
        Returns the weight 0-based index.
        Returns:
        the index, -1 if not initialized
      • getClassDistributionIndices

        public int[] getClassDistributionIndices()
        Returns the 0-based indices of the class distribution columns.
        Returns:
        the indices, 0-length array if not initialized or not used
      • getAdditionalIndices

        public int[] getAdditionalIndices()
        Returns the 0-based indices of the additional columns.
        Returns:
        the indices, 0-length array if not initialized or not used
      • buildClassifier

        public void buildClassifier​(weka.core.Instances data)
                             throws Exception
        Just loads the predictions.
        Parameters:
        data - ignored
        Throws:
        Exception - if loading of predictions failed
      • classifyInstance

        public double classifyInstance​(weka.core.Instance instance)
                                throws Exception
        Always returns 0.
        Specified by:
        classifyInstance in interface weka.classifiers.Classifier
        Overrides:
        classifyInstance in class AbstractSimpleClassifier
        Parameters:
        instance - the instance to be classified
        Returns:
        always 0
        Throws:
        Exception - never thrown