Search in sources :

Example 1 with AlgorithmModel

use of edu.cmu.tetradapp.ui.model.AlgorithmModel in project tetrad by cmu-phil.

the class GeneralAlgorithmEditor method initComponents.

private void initComponents() {
    algoDescTextArea.setWrapStyleWord(true);
    algoDescTextArea.setLineWrap(true);
    algoDescTextArea.setEditable(false);
    populateAlgoTypeOptions(algoTypeOpts);
    knowledgeChkBox.addActionListener((e) -> {
        refreshAlgorithmList();
    });
    linearVarChkBox.addActionListener((ActionEvent e) -> {
        refreshTestAndScoreList();
    });
    gaussianVarChkBox.addActionListener((ActionEvent e) -> {
        refreshTestAndScoreList();
    });
    algorithmList.addListSelectionListener((e) -> {
        if (!(e.getValueIsAdjusting() || algorithmList.isSelectionEmpty())) {
            setAlgorithmDescription();
            refreshTestAndScoreList();
            validateAlgorithmOption();
        }
    });
    paramSetFwdBtn.addActionListener((e) -> {
        AlgorithmModel algoModel = algorithmList.getSelectedValue();
        IndependenceTestModel indTestModel = indTestComboBox.getItemAt(indTestComboBox.getSelectedIndex());
        ScoreModel scoreModel = scoreComboBox.getItemAt(scoreComboBox.getSelectedIndex());
        if (isValid(algoModel, indTestModel, scoreModel)) {
            setParameterPanel(algoModel, indTestModel, scoreModel);
            changeCard(PARAMETER_CARD);
        }
    });
    indTestComboBox.addActionListener((e) -> {
        if (!updatingTestModels && indTestComboBox.getSelectedIndex() >= 0) {
            AlgorithmModel algoModel = algorithmList.getSelectedValue();
            Map<DataType, IndependenceTestModel> map = defaultIndTestModels.get(algoModel);
            if (map == null) {
                map = new EnumMap<>(DataType.class);
                defaultIndTestModels.put(algoModel, map);
            }
            map.put(dataType, indTestComboBox.getItemAt(indTestComboBox.getSelectedIndex()));
        }
    });
    scoreComboBox.addActionListener((e) -> {
        if (!updatingScoreModels && scoreComboBox.getSelectedIndex() >= 0) {
            AlgorithmModel algoModel = algorithmList.getSelectedValue();
            Map<DataType, ScoreModel> map = defaultScoreModels.get(algoModel);
            if (map == null) {
                map = new EnumMap<>(DataType.class);
                defaultScoreModels.put(algoModel, map);
            }
            map.put(dataType, scoreComboBox.getItemAt(scoreComboBox.getSelectedIndex()));
        }
    });
    mainPanel.add(new AlgorithmCard(), ALGORITHM_CARD);
    mainPanel.add(new ParameterCard(), PARAMETER_CARD);
    mainPanel.add(new GraphCard(), GRAPH_CARD);
    mainPanel.setPreferredSize(new Dimension(940, 640));
    setLayout(new BorderLayout());
    add(mainPanel, BorderLayout.CENTER);
// add(new JScrollPane(mainPanel), BorderLayout.CENTER);
}
Also used : IndependenceTestModel(edu.cmu.tetradapp.ui.model.IndependenceTestModel) ActionEvent(java.awt.event.ActionEvent) Dimension(java.awt.Dimension) ScoreModel(edu.cmu.tetradapp.ui.model.ScoreModel) BorderLayout(java.awt.BorderLayout) DataType(edu.cmu.tetrad.data.DataType) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel)

Example 2 with AlgorithmModel

use of edu.cmu.tetradapp.ui.model.AlgorithmModel in project tetrad by cmu-phil.

the class GeneralAlgorithmEditor method restorePreviousState.

private void restorePreviousState(Map<String, Object> models) {
    Object obj = models.get(LINEAR_PARAM);
    if ((obj != null) && (obj instanceof Boolean)) {
        linearVarChkBox.setSelected((Boolean) obj);
    }
    obj = models.get(GAUSSIAN_PARAM);
    if ((obj != null) && (obj instanceof Boolean)) {
        gaussianVarChkBox.setSelected((Boolean) obj);
    }
    obj = models.get(KNOWLEDGE_PARAM);
    if ((obj != null) && (obj instanceof Boolean)) {
        knowledgeChkBox.setSelected((Boolean) obj);
    }
    obj = models.get(ALGO_TYPE_PARAM);
    if ((obj != null) && (obj instanceof String)) {
        String actCmd = String.valueOf(obj);
        Optional<JRadioButton> opt = algoTypeOpts.stream().filter(e -> e.getActionCommand().equals(actCmd)).findFirst();
        if (opt.isPresent()) {
            opt.get().setSelected(true);
        }
    }
    refreshAlgorithmList();
    refreshTestAndScoreList();
    obj = models.get(ALGO_PARAM);
    if ((obj != null) && (obj instanceof AlgorithmModel)) {
        String value = ((AlgorithmModel) obj).toString();
        Enumeration<AlgorithmModel> enums = algoModels.elements();
        while (enums.hasMoreElements()) {
            AlgorithmModel model = enums.nextElement();
            if (model.toString().equals(value)) {
                models.put(ALGO_PARAM, model);
                algorithmList.setSelectedValue(model, true);
                String title = String.format("Algorithm: %s", model.getAlgorithm().getAnnotation().name());
                algorithmGraphTitle.setText(title);
                break;
            }
        }
    }
    obj = models.get(IND_TEST_PARAM);
    if ((obj != null) && (obj instanceof IndependenceTestModel)) {
        String value = ((IndependenceTestModel) obj).toString();
        ComboBoxModel<IndependenceTestModel> comboBoxModels = indTestComboBox.getModel();
        int size = comboBoxModels.getSize();
        for (int i = 0; i < size; i++) {
            IndependenceTestModel model = comboBoxModels.getElementAt(i);
            if (model.toString().equals(value)) {
                models.put(IND_TEST_PARAM, model);
                indTestComboBox.getModel().setSelectedItem(model);
                break;
            }
        }
    }
    obj = models.get(SCORE_PARAM);
    if ((obj != null) && (obj instanceof ScoreModel)) {
        String value = ((ScoreModel) obj).toString();
        ComboBoxModel<ScoreModel> comboBoxModels = scoreComboBox.getModel();
        int size = comboBoxModels.getSize();
        for (int i = 0; i < size; i++) {
            ScoreModel model = comboBoxModels.getElementAt(i);
            if (model.toString().equals(value)) {
                models.put(SCORE_PARAM, model);
                scoreComboBox.getModel().setSelectedItem(model);
                break;
            }
        }
    }
}
Also used : Enumeration(java.util.Enumeration) JDialog(javax.swing.JDialog) TetradDesktop(edu.cmu.tetradapp.app.TetradDesktop) LoggerFactory(org.slf4j.LoggerFactory) Parameters(edu.cmu.tetrad.util.Parameters) Node(edu.cmu.tetrad.graph.Node) PaddingPanel(edu.cmu.tetradapp.ui.PaddingPanel) StringUtils(org.apache.commons.lang3.StringUtils) Linear(edu.cmu.tetrad.annotation.Linear) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel) Map(java.util.Map) ScoreModel(edu.cmu.tetradapp.ui.model.ScoreModel) ICovarianceMatrix(edu.cmu.tetrad.data.ICovarianceMatrix) HpcJobActivityAction(edu.cmu.tetradapp.app.hpc.action.HpcJobActivityAction) BorderLayout(java.awt.BorderLayout) ButtonModel(javax.swing.ButtonModel) JComboBox(javax.swing.JComboBox) GraphSelectionWrapper(edu.cmu.tetradapp.model.GraphSelectionWrapper) Method(java.lang.reflect.Method) Path(java.nio.file.Path) GeneralAlgorithmRunner(edu.cmu.tetradapp.model.GeneralAlgorithmRunner) BdeuScore(edu.cmu.tetrad.algcomparison.score.BdeuScore) HpcJobManager(edu.cmu.tetradapp.app.hpc.manager.HpcJobManager) Frame(java.awt.Frame) HpcAccountManager(edu.cmu.tetradapp.app.hpc.manager.HpcAccountManager) WatchedProcess(edu.cmu.tetradapp.util.WatchedProcess) EnumMap(java.util.EnumMap) AlgType(edu.cmu.tetrad.annotation.AlgType) HpcParameter(edu.pitt.dbmi.tetrad.db.entity.HpcParameter) Set(java.util.Set) BorderFactory(javax.swing.BorderFactory) ComboBoxModel(javax.swing.ComboBoxModel) Gaussian(edu.cmu.tetrad.annotation.Gaussian) Nonexecutable(edu.cmu.tetrad.annotation.Nonexecutable) JsonWebToken(edu.pitt.dbmi.ccd.rest.client.dto.user.JsonWebToken) HpcJobInfo(edu.pitt.dbmi.tetrad.db.entity.HpcJobInfo) JRadioButton(javax.swing.JRadioButton) DataModel(edu.cmu.tetrad.data.DataModel) InvocationTargetException(java.lang.reflect.InvocationTargetException) Box(javax.swing.Box) Dimension(java.awt.Dimension) List(java.util.List) DataSet(edu.cmu.tetrad.data.DataSet) JCheckBox(javax.swing.JCheckBox) Optional(java.util.Optional) MessageDigestHash(edu.pitt.dbmi.ccd.commons.file.MessageDigestHash) JPanel(javax.swing.JPanel) Toolkit(java.awt.Toolkit) CardLayout(java.awt.CardLayout) JOptionUtils(edu.cmu.tetrad.util.JOptionUtils) HashMap(java.util.HashMap) AlgorithmModels(edu.cmu.tetradapp.ui.model.AlgorithmModels) FinalizingEditor(edu.cmu.tetradapp.util.FinalizingEditor) AlgorithmParamRequest(edu.pitt.dbmi.tetrad.db.entity.AlgorithmParamRequest) SwingConstants(javax.swing.SwingConstants) ArrayList(java.util.ArrayList) SingleGraphAlg(edu.cmu.tetrad.algcomparison.algorithm.oracle.pattern.SingleGraphAlg) HashSet(java.util.HashSet) HasKnowledge(edu.cmu.tetrad.algcomparison.utils.HasKnowledge) SemBicScore(edu.cmu.tetrad.algcomparison.score.SemBicScore) DataType(edu.cmu.tetrad.data.DataType) JsonUtils(edu.cmu.tetrad.util.JsonUtils) IndependenceTestModel(edu.cmu.tetradapp.ui.model.IndependenceTestModel) IndependenceTestModels(edu.cmu.tetradapp.ui.model.IndependenceTestModels) TsImages(edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.TsImages) LinkedList(java.util.LinkedList) AlgorithmFactory(edu.cmu.tetrad.algcomparison.algorithm.AlgorithmFactory) Algorithm(edu.cmu.tetrad.algcomparison.algorithm.Algorithm) JButton(javax.swing.JButton) Logger(org.slf4j.Logger) AlgorithmParameter(edu.pitt.dbmi.tetrad.db.entity.AlgorithmParameter) Files(java.nio.file.Files) ButtonGroup(javax.swing.ButtonGroup) TakesInitialGraph(edu.cmu.tetrad.algcomparison.utils.TakesInitialGraph) Window(java.awt.Window) JList(javax.swing.JList) DesktopController(edu.cmu.tetradapp.util.DesktopController) Graph(edu.cmu.tetrad.graph.Graph) HpcAccountUtils(edu.cmu.tetradapp.app.hpc.util.HpcAccountUtils) JvmOptions(edu.pitt.dbmi.tetrad.db.entity.JvmOptions) IOException(java.io.IOException) JOptionPane(javax.swing.JOptionPane) ActionEvent(java.awt.event.ActionEvent) JScrollPane(javax.swing.JScrollPane) LayoutStyle(javax.swing.LayoutStyle) DataModelList(edu.cmu.tetrad.data.DataModelList) ScoreModels(edu.cmu.tetradapp.ui.model.ScoreModels) DefaultListModel(javax.swing.DefaultListModel) JLabel(javax.swing.JLabel) GroupLayout(javax.swing.GroupLayout) HpcAccount(edu.pitt.dbmi.tetrad.db.entity.HpcAccount) JTextArea(javax.swing.JTextArea) Knowledge2(edu.cmu.tetrad.data.Knowledge2) JRadioButton(javax.swing.JRadioButton) IndependenceTestModel(edu.cmu.tetradapp.ui.model.IndependenceTestModel) ScoreModel(edu.cmu.tetradapp.ui.model.ScoreModel) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel)

Example 3 with AlgorithmModel

use of edu.cmu.tetradapp.ui.model.AlgorithmModel in project tetrad by cmu-phil.

the class GeneralAlgorithmEditor method validateAlgorithmOption.

private void validateAlgorithmOption() {
    paramSetFwdBtn.setEnabled(true);
    AlgorithmModel algoModel = algorithmList.getSelectedValue();
    Class algoClass = algoModel.getAlgorithm().getClazz();
    if (algoClass.isAnnotationPresent(Nonexecutable.class)) {
        String msg;
        try {
            Object algo = algoClass.newInstance();
            Method m = algoClass.getDeclaredMethod("getDescription");
            m.setAccessible(true);
            try {
                msg = String.valueOf(m.invoke(algo));
            } catch (InvocationTargetException exception) {
                msg = "";
            }
        } catch (IllegalAccessException | InstantiationException | NoSuchMethodException exception) {
            LOGGER.error("", exception);
            msg = "";
        }
        paramSetFwdBtn.setEnabled(false);
        JOptionPane.showMessageDialog(desktop, msg, "Please Note", JOptionPane.INFORMATION_MESSAGE);
    } else {
        // Check if initial graph is provided for those pairwise algorithms
        if (TakesInitialGraph.class.isAssignableFrom(algoClass)) {
            if (runner.getSourceGraph() == null || runner.getDataModelList().isEmpty()) {
                try {
                    Object algo = algoClass.newInstance();
                    Method m = algoClass.getDeclaredMethod("setInitialGraph", Algorithm.class);
                    m.setAccessible(true);
                    try {
                        Algorithm algorithm = null;
                        m.invoke(algo, algorithm);
                    } catch (InvocationTargetException | IllegalArgumentException exception) {
                        paramSetFwdBtn.setEnabled(false);
                        JOptionPane.showMessageDialog(desktop, exception.getCause().getMessage(), "Please Note", JOptionPane.INFORMATION_MESSAGE);
                    }
                } catch (IllegalAccessException | InstantiationException | NoSuchMethodException exception) {
                    LOGGER.error("", exception);
                }
            }
        }
    }
// Check dataset data type for those algorithms take mixed data?
}
Also used : Method(java.lang.reflect.Method) Algorithm(edu.cmu.tetrad.algcomparison.algorithm.Algorithm) InvocationTargetException(java.lang.reflect.InvocationTargetException) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel)

Example 4 with AlgorithmModel

use of edu.cmu.tetradapp.ui.model.AlgorithmModel in project tetrad by cmu-phil.

the class GeneralAlgorithmEditor method refreshScoreList.

private void refreshScoreList() {
    updatingScoreModels = true;
    scoreComboBox.removeAllItems();
    AlgorithmModel algoModel = algorithmList.getSelectedValue();
    if (algoModel != null && algoModel.isRequiredScore()) {
        boolean linear = linearVarChkBox.isSelected();
        boolean gaussian = gaussianVarChkBox.isSelected();
        List<ScoreModel> models = ScoreModels.getInstance().getModels(dataType);
        List<ScoreModel> scoreModels = new LinkedList<>();
        if (linear && gaussian) {
            models.stream().filter(e -> e.getScore().getClazz().isAnnotationPresent(Linear.class)).filter(e -> e.getScore().getClazz().isAnnotationPresent(Gaussian.class)).forEach(e -> scoreModels.add(e));
        } else if (linear) {
            models.stream().filter(e -> e.getScore().getClazz().isAnnotationPresent(Linear.class)).filter(e -> !e.getScore().getClazz().isAnnotationPresent(Gaussian.class)).forEach(e -> scoreModels.add(e));
        } else if (gaussian) {
            models.stream().filter(e -> !e.getScore().getClazz().isAnnotationPresent(Linear.class)).filter(e -> e.getScore().getClazz().isAnnotationPresent(Gaussian.class)).forEach(e -> scoreModels.add(e));
        } else {
            models.stream().forEach(e -> scoreModels.add(e));
        }
        // or BDeu score for discrete data
        if (TsImages.class.equals(algoModel.getAlgorithm().getClazz())) {
            switch(dataType) {
                case Continuous:
                    scoreModels.stream().filter(e -> e.getScore().getClazz().equals(SemBicScore.class)).forEach(e -> scoreComboBox.addItem(e));
                    break;
                case Discrete:
                    scoreModels.stream().filter(e -> e.getScore().getClazz().equals(BdeuScore.class)).forEach(e -> scoreComboBox.addItem(e));
                    break;
            }
        } else {
            scoreModels.forEach(e -> scoreComboBox.addItem(e));
        }
    }
    updatingScoreModels = false;
    if (scoreComboBox.getItemCount() > 0) {
        scoreComboBox.setEnabled(true);
        Map<DataType, ScoreModel> map = defaultScoreModels.get(algoModel);
        if (map == null) {
            map = new EnumMap<>(DataType.class);
            defaultScoreModels.put(algoModel, map);
        }
        ScoreModel scoreModel = map.get(dataType);
        if (scoreModel == null) {
            scoreModel = ScoreModels.getInstance().getDefaultModel(dataType);
            if (scoreModel == null) {
                scoreModel = scoreComboBox.getItemAt(0);
            }
        }
        scoreComboBox.setSelectedItem(scoreModel);
    } else {
        scoreComboBox.setEnabled(false);
    }
}
Also used : Enumeration(java.util.Enumeration) JDialog(javax.swing.JDialog) TetradDesktop(edu.cmu.tetradapp.app.TetradDesktop) LoggerFactory(org.slf4j.LoggerFactory) Parameters(edu.cmu.tetrad.util.Parameters) Node(edu.cmu.tetrad.graph.Node) PaddingPanel(edu.cmu.tetradapp.ui.PaddingPanel) StringUtils(org.apache.commons.lang3.StringUtils) Linear(edu.cmu.tetrad.annotation.Linear) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel) Map(java.util.Map) ScoreModel(edu.cmu.tetradapp.ui.model.ScoreModel) ICovarianceMatrix(edu.cmu.tetrad.data.ICovarianceMatrix) HpcJobActivityAction(edu.cmu.tetradapp.app.hpc.action.HpcJobActivityAction) BorderLayout(java.awt.BorderLayout) ButtonModel(javax.swing.ButtonModel) JComboBox(javax.swing.JComboBox) GraphSelectionWrapper(edu.cmu.tetradapp.model.GraphSelectionWrapper) Method(java.lang.reflect.Method) Path(java.nio.file.Path) GeneralAlgorithmRunner(edu.cmu.tetradapp.model.GeneralAlgorithmRunner) BdeuScore(edu.cmu.tetrad.algcomparison.score.BdeuScore) HpcJobManager(edu.cmu.tetradapp.app.hpc.manager.HpcJobManager) Frame(java.awt.Frame) HpcAccountManager(edu.cmu.tetradapp.app.hpc.manager.HpcAccountManager) WatchedProcess(edu.cmu.tetradapp.util.WatchedProcess) EnumMap(java.util.EnumMap) AlgType(edu.cmu.tetrad.annotation.AlgType) HpcParameter(edu.pitt.dbmi.tetrad.db.entity.HpcParameter) Set(java.util.Set) BorderFactory(javax.swing.BorderFactory) ComboBoxModel(javax.swing.ComboBoxModel) Gaussian(edu.cmu.tetrad.annotation.Gaussian) Nonexecutable(edu.cmu.tetrad.annotation.Nonexecutable) JsonWebToken(edu.pitt.dbmi.ccd.rest.client.dto.user.JsonWebToken) HpcJobInfo(edu.pitt.dbmi.tetrad.db.entity.HpcJobInfo) JRadioButton(javax.swing.JRadioButton) DataModel(edu.cmu.tetrad.data.DataModel) InvocationTargetException(java.lang.reflect.InvocationTargetException) Box(javax.swing.Box) Dimension(java.awt.Dimension) List(java.util.List) DataSet(edu.cmu.tetrad.data.DataSet) JCheckBox(javax.swing.JCheckBox) Optional(java.util.Optional) MessageDigestHash(edu.pitt.dbmi.ccd.commons.file.MessageDigestHash) JPanel(javax.swing.JPanel) Toolkit(java.awt.Toolkit) CardLayout(java.awt.CardLayout) JOptionUtils(edu.cmu.tetrad.util.JOptionUtils) HashMap(java.util.HashMap) AlgorithmModels(edu.cmu.tetradapp.ui.model.AlgorithmModels) FinalizingEditor(edu.cmu.tetradapp.util.FinalizingEditor) AlgorithmParamRequest(edu.pitt.dbmi.tetrad.db.entity.AlgorithmParamRequest) SwingConstants(javax.swing.SwingConstants) ArrayList(java.util.ArrayList) SingleGraphAlg(edu.cmu.tetrad.algcomparison.algorithm.oracle.pattern.SingleGraphAlg) HashSet(java.util.HashSet) HasKnowledge(edu.cmu.tetrad.algcomparison.utils.HasKnowledge) SemBicScore(edu.cmu.tetrad.algcomparison.score.SemBicScore) DataType(edu.cmu.tetrad.data.DataType) JsonUtils(edu.cmu.tetrad.util.JsonUtils) IndependenceTestModel(edu.cmu.tetradapp.ui.model.IndependenceTestModel) IndependenceTestModels(edu.cmu.tetradapp.ui.model.IndependenceTestModels) TsImages(edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.TsImages) LinkedList(java.util.LinkedList) AlgorithmFactory(edu.cmu.tetrad.algcomparison.algorithm.AlgorithmFactory) Algorithm(edu.cmu.tetrad.algcomparison.algorithm.Algorithm) JButton(javax.swing.JButton) Logger(org.slf4j.Logger) AlgorithmParameter(edu.pitt.dbmi.tetrad.db.entity.AlgorithmParameter) Files(java.nio.file.Files) ButtonGroup(javax.swing.ButtonGroup) TakesInitialGraph(edu.cmu.tetrad.algcomparison.utils.TakesInitialGraph) Window(java.awt.Window) JList(javax.swing.JList) DesktopController(edu.cmu.tetradapp.util.DesktopController) Graph(edu.cmu.tetrad.graph.Graph) HpcAccountUtils(edu.cmu.tetradapp.app.hpc.util.HpcAccountUtils) JvmOptions(edu.pitt.dbmi.tetrad.db.entity.JvmOptions) IOException(java.io.IOException) JOptionPane(javax.swing.JOptionPane) ActionEvent(java.awt.event.ActionEvent) JScrollPane(javax.swing.JScrollPane) LayoutStyle(javax.swing.LayoutStyle) DataModelList(edu.cmu.tetrad.data.DataModelList) ScoreModels(edu.cmu.tetradapp.ui.model.ScoreModels) DefaultListModel(javax.swing.DefaultListModel) JLabel(javax.swing.JLabel) GroupLayout(javax.swing.GroupLayout) HpcAccount(edu.pitt.dbmi.tetrad.db.entity.HpcAccount) JTextArea(javax.swing.JTextArea) Knowledge2(edu.cmu.tetrad.data.Knowledge2) DataType(edu.cmu.tetrad.data.DataType) AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel) ScoreModel(edu.cmu.tetradapp.ui.model.ScoreModel) LinkedList(java.util.LinkedList) Linear(edu.cmu.tetrad.annotation.Linear)

Example 5 with AlgorithmModel

use of edu.cmu.tetradapp.ui.model.AlgorithmModel in project tetrad by cmu-phil.

the class GeneralAlgorithmEditor method setAlgorithmDescription.

private void setAlgorithmDescription() {
    AlgorithmModel model = algorithmList.getSelectedValue();
    if (model == null) {
        algoDescTextArea.setText("");
    } else {
        algoDescTextArea.setText(model.getDescription());
        algoDescTextArea.setCaretPosition(0);
    }
}
Also used : AlgorithmModel(edu.cmu.tetradapp.ui.model.AlgorithmModel)

Aggregations

AlgorithmModel (edu.cmu.tetradapp.ui.model.AlgorithmModel)8 IndependenceTestModel (edu.cmu.tetradapp.ui.model.IndependenceTestModel)5 ScoreModel (edu.cmu.tetradapp.ui.model.ScoreModel)5 BorderLayout (java.awt.BorderLayout)5 Dimension (java.awt.Dimension)5 InvocationTargetException (java.lang.reflect.InvocationTargetException)5 Algorithm (edu.cmu.tetrad.algcomparison.algorithm.Algorithm)4 DataModel (edu.cmu.tetrad.data.DataModel)4 DataSet (edu.cmu.tetrad.data.DataSet)4 Knowledge2 (edu.cmu.tetrad.data.Knowledge2)4 Node (edu.cmu.tetrad.graph.Node)4 Parameters (edu.cmu.tetrad.util.Parameters)4 HpcJobActivityAction (edu.cmu.tetradapp.app.hpc.action.HpcJobActivityAction)4 HpcAccountManager (edu.cmu.tetradapp.app.hpc.manager.HpcAccountManager)4 HpcJobManager (edu.cmu.tetradapp.app.hpc.manager.HpcJobManager)4 AlgorithmFactory (edu.cmu.tetrad.algcomparison.algorithm.AlgorithmFactory)3 TsImages (edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.TsImages)3 SingleGraphAlg (edu.cmu.tetrad.algcomparison.algorithm.oracle.pattern.SingleGraphAlg)3 BdeuScore (edu.cmu.tetrad.algcomparison.score.BdeuScore)3 SemBicScore (edu.cmu.tetrad.algcomparison.score.SemBicScore)3