java.lang.Object
es.upm.fi.cig.multictbnc.gui.Controller
Controller used to initialise the elements of the GUI and allow the interaction between the logic of the application
and the GUI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidA dataset reader was selected in the comboBox.voidA dataset reader for the classification dataset was selected in the comboBox.voidAn strategy for the extraction of sequences to classify was selected.voidAn strategy for the extraction of sequences was selected.voidA model was selected in the comboBox.voidA parameter learning algorithm for BNs was selected in the comboBox.voidA parameter learning algorithm for CTBNs was selected in the comboBox.voidA score function was selected in the comboBox.voidA structure learning algorithm was selected in the comboBox.voidclassify()Performs classification over a provided dataset with a previously trained model.voidThe information of the dataset used for classification was modified, so itsDatasetReaderis warned.voidThe information of the dataset for training/evaluation was modified, so itsDatasetReaderis warned.voidevaluate()Evaluates the selected model.voidInitialises the controller.voidCross-validation method was selected.voidHold-out-validation method was selected.voidTest dataset method was selected.voidOpens a dialog to select the folder where the dataset for training and evaluation is located.voidOpens a dialog to select the folder where the dataset on which classification is performed is located.voidOpens a dialog to select the folder where the dataset for testing is located.voidsetStage(javafx.stage.Stage stage) Establishes the stage used by the application to show dialogs.voidTrains the selected model.
-
Constructor Details
-
Controller
public Controller()
-
-
Method Details
-
changeDatasetReader
public void changeDatasetReader()A dataset reader was selected in the comboBox. Shows its correspondent options. -
changeDatasetReaderClassification
public void changeDatasetReaderClassification()A dataset reader for the classification dataset was selected in the comboBox. Shows its correspondent options. -
changeDatasetReaderClassificationStrategy
public void changeDatasetReaderClassificationStrategy()An strategy for the extraction of sequences to classify was selected. Shows its correspondent options. -
changeDatasetReaderStrategy
public void changeDatasetReaderStrategy()An strategy for the extraction of sequences was selected. Shows its correspondent options. -
changeModel
public void changeModel()A model was selected in the comboBox. Shows its correspondent hyperparameters. -
changeParameterLearningAlgBN
public void changeParameterLearningAlgBN()A parameter learning algorithm for BNs was selected in the comboBox. Its corresponding parameters are shown. -
changeParameterLearningAlgCTBN
public void changeParameterLearningAlgCTBN()A parameter learning algorithm for CTBNs was selected in the comboBox. Shows its correspondent parameters. -
changeScoreFunction
public void changeScoreFunction()A score function was selected in the comboBox. Shows its correspondent parameters. -
changeStructureLearningAlg
public void changeStructureLearningAlg()A structure learning algorithm was selected in the comboBox. Shows its correspondent parameters. -
classify
public void classify()Performs classification over a provided dataset with a previously trained model. -
datasetClassificationModified
public void datasetClassificationModified()The information of the dataset used for classification was modified, so itsDatasetReaderis warned. This is useful to avoid the reloading of the same dataset. -
datasetModified
public void datasetModified()The information of the dataset for training/evaluation was modified, so itsDatasetReaderis warned. This is useful to avoid the reloading of the same dataset. -
evaluate
public void evaluate()Evaluates the selected model. -
initialize
public void initialize()Initialises the controller. -
selectCrossValidation
public void selectCrossValidation()Cross-validation method was selected. Shows its correspondent parameters. -
selectHoldOutValidation
public void selectHoldOutValidation()Hold-out-validation method was selected. Shows its correspondent parameters. -
selectTestDataset
public void selectTestDataset()Test dataset method was selected. Shows its correspondent parameters. -
setFolderDataset
Opens a dialog to select the folder where the dataset for training and evaluation is located.- Throws:
FileNotFoundException- if the provided files were not found
-
setFolderDatasetClassification
Opens a dialog to select the folder where the dataset on which classification is performed is located.- Throws:
FileNotFoundException- if the provided files were not found
-
setFolderTestDataset
Opens a dialog to select the folder where the dataset for testing is located.- Throws:
FileNotFoundException- if the provided files were not found
-
setStage
public void setStage(javafx.stage.Stage stage) Establishes the stage used by the application to show dialogs.- Parameters:
stage- aStage
-
trainModel
public void trainModel()Trains the selected model.
-