causalexplain.gui.tabs package#

Submodules#

Dataset generation tab for the causalexplain GUI.

class GenerateTab(ui, run, storage, settings, notify)[source]#

Bases: object

Build and manage the Generate Dataset tab.

__init__(ui, run, storage, settings, notify)[source]#

Initialize the generate tab with shared GUI dependencies.

build()[source]#

Render the Generate Dataset tab UI.

async run_generate()[source]#

Generate a dataset and update UI widgets.

async run_save_generated()[source]#

Save the generated dataset to disk.

Load/evaluate tab for the causalexplain GUI.

class LoadTab(ui, run, storage, settings, upload_dir)[source]#

Bases: object

Build and manage the Load + Evaluate tab.

__init__(ui, run, storage, settings, upload_dir)[source]#

Initialize the load tab with shared GUI dependencies.

build()[source]#

Render the Load + Evaluate tab UI.

async run_load()[source]#

Load a model and refresh the UI.

Training tab for the causalexplain GUI.

class TrainTab(ui, run, storage, settings, upload_dir)[source]#

Bases: object

Build and manage the Train Model tab.

__init__(ui, run, storage, settings, upload_dir)[source]#

Initialize the train tab with shared GUI dependencies.

build()[source]#

Render the Train Model tab UI.

async run_training()[source]#

Execute training and update UI elements.

start_training_task()[source]#

Launch the training coroutine.

cancel_training_task()[source]#

Request cancellation of the running training job.

async save_trained_model()[source]#

Persist the trained model to disk.

async save_trained_dag()[source]#

Persist the trained DAG to disk.

Module contents#

Tab builders for the causalexplain GUI.

class TrainTab(ui, run, storage, settings, upload_dir)[source]#

Bases: object

Build and manage the Train Model tab.

__init__(ui, run, storage, settings, upload_dir)[source]#

Initialize the train tab with shared GUI dependencies.

build()[source]#

Render the Train Model tab UI.

async run_training()[source]#

Execute training and update UI elements.

start_training_task()[source]#

Launch the training coroutine.

cancel_training_task()[source]#

Request cancellation of the running training job.

async save_trained_model()[source]#

Persist the trained model to disk.

async save_trained_dag()[source]#

Persist the trained DAG to disk.

class LoadTab(ui, run, storage, settings, upload_dir)[source]#

Bases: object

Build and manage the Load + Evaluate tab.

__init__(ui, run, storage, settings, upload_dir)[source]#

Initialize the load tab with shared GUI dependencies.

build()[source]#

Render the Load + Evaluate tab UI.

async run_load()[source]#

Load a model and refresh the UI.

class GenerateTab(ui, run, storage, settings, notify)[source]#

Bases: object

Build and manage the Generate Dataset tab.

__init__(ui, run, storage, settings, notify)[source]#

Initialize the generate tab with shared GUI dependencies.

build()[source]#

Render the Generate Dataset tab UI.

async run_generate()[source]#

Generate a dataset and update UI widgets.

async run_save_generated()[source]#

Save the generated dataset to disk.