Training Protocol (Panel)

class myogestic.gui.protocols.training.PopupWindowFeatures(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))[source]

Bases: QDialog

Initialize self. See help(type(self)) for accurate signature.

Parameters:

selected_features (list[str])

class myogestic.gui.protocols.training.PopupWindowParameters(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))[source]

Bases: QDialog

Initialize self. See help(type(self)) for accurate signature.

class myogestic.gui.protocols.training.PyQtThread(self, parent: PySide6.QtCore.QObject | None = None)[source]

Bases: QThread

Custom PyQt thread class for running a target function in a separate thread.

Parameters:
  • target (function) – The target function to run in the thread.

  • parent (QObject | None) – The parent object of the thread.

has_finished_signal

Signal for emitting when the thread has finished.

Type:

Signal

progress_bar_signal

Signal for emitting the progress of the thread.

Type:

Signal

Initialize self. See help(type(self)) for accurate signature.

quit(self) None[source]
Return type:

None

run(self) None[source]
class myogestic.gui.protocols.training.TrainingProtocol(self, parent: PySide6.QtCore.QObject | None = None)[source]

Bases: QObject

Class for handling the training protocol of the MyoGestic application.

Parameters:

parent (MyoGestic | None) – The parent object of the protocol object.

main_window

The main window of the MyoGestic application.

Type:

MyoGestic

model_interface

Interface for the models.

Type:

MyoGesticModelInterface

selected_recordings

Dictionary for the selected recordings.

Type:

dict[str, dict]

selected_dataset_filepath

Dictionary for the selected dataset file path.

Type:

dict[str, np.ndarray]

create_dataset_thread

Thread for creating a dataset.

Type:

PyQtThread

train_model_thread

Thread for training a models.

Type:

PyQtThread

recordings_dir_path

Path for the recordings directory.

Type:

str

models_dir_path

Path for the models directory.

Type:

str

datasets_dir_path

Path for the datasets directory.

Type:

str

no_dataset_selected_info

Information for no dataset selected.

Type:

str

Initialize self. See help(type(self)) for accurate signature.