src.classification.classify package

Submodules

src.classification.classify.classify_controller module

Classify Controller

class src.classification.classify.classify_controller.classifyController(number_of_channels, event_values, event_ids)[source]

Bases: classification.classify.classify_listener.classifyListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(pipeline_selected, feature_selection, number_of_channels_to_select, hyper_tuning, cross_val_number, trials_selected)[source]

Close the window and send the information to the main controller. :param pipeline_selected: The pipeline(s) used for the classification of the dataset. :type pipeline_selected: list of str :param feature_selection: Boolean telling if the computation of some feature selection techniques must be performed on the dataset. :type feature_selection: boolean :param number_of_channels_to_select: Number of channels to select for the feature selection. :type number_of_channels_to_select: int :param hyper_tuning: Boolean telling if the computation of the tuning of the hyper-parameters of the pipelines must be performed on the dataset. :type hyper_tuning: boolean :param cross_val_number: Number of cross-validation fold used by the pipelines on the dataset. :type cross_val_number: int :param trials_selected: The indexes of the trials selected for the computation :type trials_selected: list of int

get_elements_selected(elements_selected, element_type)[source]

Get the elements selected by the user in the multiple elements’ selector. :param elements_selected: Elements selected in the multiple elements’ selector. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

plot_results(classifier)[source]

Plot the classification results. :param classifier: The classifier that did the classification. :type classifier: ApplePyClassifier

set_listener(listener)[source]

Set the main listener so that the controller is able to communicate with the main controller. :param listener: main listener :type listener: mainController

src.classification.classify.classify_listener module

Classify listener

class src.classification.classify.classify_listener.classifyListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for performing the classification on the dataset. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(pipeline_selected, feature_selection, number_of_channels_to_select, hyper_tuning, cross_val_number, trials_selected)[source]
get_elements_selected(elements_selected, element_type)[source]

src.classification.classify.classify_view module

Classify view

class src.classification.classify.classify_view.classifyView(number_of_channels, event_values, event_ids)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_classification_trigger()[source]

Send the information to the controller that the computation is cancelled.

check_element_type(elements_selected, element_type)[source]
confirm_classification_trigger()[source]

Retrieve the parameters and send the information to the controller.

pipeline_selection_trigger()[source]

Open the multiple selector window. The user can select a multiple pipelines used for the classification.

static plot_results(classifier)[source]

Plot the classification results. :param classifier: The classifier that did the classification. :type classifier: ApplePyClassifier

set_listener(listener)[source]

Set the listener to the controller. :param listener: Listener to the controller. :type listener: classifyController

set_pipeline_selected(pipeline)[source]

Set the pipeliens selected in the multiple selector window. :param pipeline: Pipelines selected :type pipeline: list of str

set_trials_selected(elements_selected, element_type)[source]

Set the channels selected in the multiple selector window. :param elements_selected: Trials or Events selected. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

trial_selection_events_trigger()[source]

Open the multiple selector window. The user can select the events he wants the source estimation to be computed on.

trial_selection_indexes_trigger()[source]

Open the multiple selector window. The user can select the trials indexes he wants the source estimation to be computed on.

Module contents