Skip to main content
Project Context for defining, configuring AIG pipeline parameters and accessing the key engine context components. This class acts as the entry point for both interactive UI sessions and headless script execution. It manages the initialization of the user interface (if enabled), collects configuration parameters, and delegates the creation of the runtime context (PipelineContext). It supports a dual-mode architecture:
  1. UI Mode (HTML): Launches ProjectGenesis and PipelineConfigurator web panels for interactive parameter tuning. Kwargs pre-fill the interactive panels for visual verification.
  2. Script Mode: Kwargs values are applied directly for scripted/headless execution.
Configuration values are resolved by precedence (highest first):
  1. Kwargs — from the current genesis() / params() call.
  2. Saved state — persisted from a prior session - UI Mode only.
  3. Schema defaults — fallback values from the schema layer.
AIDflow Parametrization methods:
  • genesis: Initializes the gateway layer (identity + data loading).
  • params: Initializes the pipeline hyperparameters and runtime context.
  • get_setup: Returns the final merged Parameters object used for training.

Parameters

config : Config
The global configuration object containing UI mode, theme, and other settings.
css_id : str
A unique ID suffix used to generate CSS panel identifiers
(e.g., ‘gateway-v1’, ‘config-v1’).

Examples

Interactive usage:
Script usage: