Package moa.tasks

Class FeatureImportanceConfig

    • Field Detail

      • m_instances

        protected Instances m_instances
        This holds the current set of instances
      • scores

        protected double[][] scores
        Scores produced by feature importance algorithm.
      • m_NaNSubstitute

        protected double m_NaNSubstitute
        When scores of feature importance are NaNs, NaNs will be replaced by NaNSubstitute shown in feature importance line graph.
      • m_windowSize

        protected int m_windowSize
        The default windowSize parameter for feature importance algorithm.
      • m_doNotNormalizeFeatureScore

        protected boolean m_doNotNormalizeFeatureScore
        The default doNotNormalizeFeatureScore parameter for feature importance algorithm.
      • progressBar

        protected JProgressBar progressBar
        Use progress bar to show the progress of computing scores of feature importance.
      • learnerOption

        public ClassOption learnerOption
        Provides GUI to user so that they can configure parameters for feature importance algorithm.
    • Constructor Detail

      • FeatureImportanceConfig

        public FeatureImportanceConfig()
    • Method Detail

      • getNaNSubstitute

        public double getNaNSubstitute()
      • setNaNSubstitute

        public void setNaNSubstitute​(double NaNSubstitute)
      • getWindowSize

        public int getWindowSize()
      • setWindowSize

        public void setWindowSize​(int windowSize)
      • doNotNormalizeFeatureScore

        public boolean doNotNormalizeFeatureScore()
      • setDoNotNormalizeFeatureScore

        public void setDoNotNormalizeFeatureScore​(boolean doNotNormalizeFeatureScore)
      • doMainTask

        protected Object doMainTask​(TaskMonitor monitor,
                                    ObjectRepository repository)
        After user clicks Run button, this method executes task to compute scores of feature importance and return.
        Specified by:
        doMainTask in class MainTask
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
        Returns:
        scores of features' importance
      • getTaskResultType

        public Class<?> getTaskResultType()
        Description copied from interface: Task
        Gets the result type of this task. Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..
        Specified by:
        getTaskResultType in interface Task
        Returns:
        a class object of the result of this task
      • setInstances

        public void setInstances​(Instances instances)