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
Close the window.
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
src.classification.classify.classify_listener module¶
Classify listener
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.
-
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
-