Class FeatureImportancePanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, weka.gui.Perspective

    public class FeatureImportancePanel
    extends weka.gui.AbstractPerspective
    This panel is the FeatureImportance tab which provides config GUI for feature importance algorithm, run button to trigger the execution of the algorithm, table line graphs to display scores of the the execution result.
    See Also:
    Serialized Form
    • Field Detail

      • m_Instances

        protected Instances m_Instances
        This holds the current set of instances
      • currentTask

        protected MainTask currentTask
        Configure GUI so that user can set parameters for feature importance algorithm and trigger task execution to compute scores of feature importance.
      • taskList

        protected List<TaskThread> taskList
        Tasks are encapsulated in task thread to execute. This List Stores tasks threads which include the execution results of the threads.
      • configureTaskButton

        protected JButton configureTaskButton
      • taskDescField

        protected JTextField taskDescField
      • runTaskButton

        protected JButton runTaskButton
      • progressBar

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

        protected JLabel progressLabel
      • featureImportanceDataModelPanel

        protected FeatureImportanceDataModelPanel featureImportanceDataModelPanel
        Feature importance data model includes two parts, the dataset and scores which will be shown in table so user can view data and choose which feature importance scores to be shown in line graph.
      • plot

        protected org.math.plot.Plot2DPanel plot
        THe drawing tool provided by jmathplot.jar
      • scores

        protected double[][] scores
        Feature importance scores produced by feature importance algorithm.
      • m_selectedAttributeIndices

        protected int[] m_selectedAttributeIndices
        The selected attribute indices.
      • featureImportanceGraph

        protected FeatureImportanceGraph featureImportanceGraph
        Show line graphs for user selected feature importance.
      • m_windowSize

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

      • getWindowSize

        public int getWindowSize()
      • setWindowSize

        public void setWindowSize​(int windowSize)
      • setParameters

        public void setParameters​(String commandLineText)
        Parse parameter windowSize from user's configuration or preference。 The parameter windowSize is used to check whether the total instance number is bigger than windowSize after user click the Run button and before the feature importance task being executed.
        Parameters:
        commandLineText -
      • setTaskString

        public void setTaskString​(String cliString)
      • setTaskString

        public void setTaskString​(String cliString,
                                  boolean storePreference)
      • copyClipBoardConfiguration

        public void copyClipBoardConfiguration()
      • setInstances

        public void setInstances​(Instances inst)
        Tells the panel to use a new base set of instances.
        Parameters:
        inst - a set of Instances
      • acceptsInstances

        public boolean acceptsInstances()
        We can accept instances
        Specified by:
        acceptsInstances in interface weka.gui.Perspective
        Overrides:
        acceptsInstances in class weka.gui.AbstractPerspective
        Returns:
        true
      • main

        public static void main​(String[] args)
      • runTask

        public void runTask​(Task task)