scripts.TrainingModel#

Classes#

TrainModelPanel

WorkerProcessFiles

Worker class for processing files in a separate thread.

Module Contents#

class scripts.TrainingModel.TrainModelPanel(file_panel, parent=None)#

Bases: PyQt5.QtWidgets.QWidget, scripts.GUIhelpers.LiveDeadDebrisSelectors, scripts.GUIhelpers.GatingMixin, scripts.GUIhelpers.GatingCheckBox

on_error(message)#
on_finished()#
start_loading_cursor()#
start_training_process()#

Establihes a thread and a worker to execute the run_process_files(). The signals of the worker allows not to exit the app in case of error and to return a success message when complete.

stop_loading_cursor()#
X = None#
batch_combo#
best_model = None#
cleaned_data = None#
cs_uncertainty_threshold = None#
epochs_combo#
event_combo#
event_label#
file_panel#
file_settings_group#
kfold_combo#
layout#
le = None#
model_settings_group#
nn_blank_combo#
nn_group#
nn_nonblank_combo#
patience_combo#
process_button#
scaler = None#
scaling_constant#
train_gating#
train_gating_layout#
umap_group#
umap_mindist_combo#
umap_nneighbors_combo#
y = None#
class scripts.TrainingModel.WorkerProcessFiles(TrainModelPanel=None)#

Bases: PyQt5.QtCore.QObject

Worker class for processing files in a separate thread.

This worker is responsible for running `process_files()` without freezing the main UI. It emits signals to indicate success or failure, allowing the main UI to handle errors properly.

run_process_files()#
TrainModelPanel = None#
error_signal#
finished_signal#