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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
A dataset reader was selected in the comboBox.void
A dataset reader for the classification dataset was selected in the comboBox.void
An strategy for the extraction of sequences to classify was selected.void
An strategy for the extraction of sequences was selected.void
A model was selected in the comboBox.void
A parameter learning algorithm for BNs was selected in the comboBox.void
A parameter learning algorithm for CTBNs was selected in the comboBox.void
A score function was selected in the comboBox.void
A structure learning algorithm was selected in the comboBox.void
classify()
Performs classification over a provided dataset with a previously trained model.void
The information of the dataset used for classification was modified, so itsDatasetReader
is warned.void
The information of the dataset for training/evaluation was modified, so itsDatasetReader
is warned.void
evaluate()
Evaluates the selected model.void
Initialises the controller.void
Cross-validation method was selected.void
Hold-out-validation method was selected.void
Test dataset method was selected.void
Opens a dialog to select the folder where the dataset for training and evaluation is located.void
Opens a dialog to select the folder where the dataset on which classification is performed is located.void
Opens a dialog to select the folder where the dataset for testing is located.void
setStage
(javafx.stage.Stage stage) Establishes the stage used by the application to show dialogs.void
Trains 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 itsDatasetReader
is 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 itsDatasetReader
is 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.
-