att.config

Reproducibility infrastructure — seed management and YAML experiment configs.

att.config.set_seed(seed)[source]

Set global random seed for all stochastic operations.

Seeds NumPy, SciPy (via NumPy), and Python’s random module. Call once at the start of any experiment or notebook.

Parameters:

seed (int)

Return type:

None

att.config.get_rng(seed=None)[source]

Get a numpy Generator, using provided seed or global state.

If seed is given, creates a new Generator from that seed. If seed is None, returns the global Generator (or creates one from seed=0).

Parameters:

seed (int | None)

Return type:

Generator

att.config.load_config(path)[source]

Load experiment configuration from a YAML file.

Supported keys: seed, embedding, topology, binding, benchmarks, transitions, surrogates, system, dataset, preprocessing.

Parameters:

path (str)

Return type:

dict

att.config.save_config(config, path)[source]

Save experiment parameters for reproducibility.

Parameters:
Return type:

None

Global seed management for deterministic reproducibility.

att.config.seed.set_seed(seed)[source]

Set global random seed for all stochastic operations.

Seeds NumPy, SciPy (via NumPy), and Python’s random module. Call once at the start of any experiment or notebook.

Parameters:

seed (int)

Return type:

None

att.config.seed.get_rng(seed=None)[source]

Get a numpy Generator, using provided seed or global state.

If seed is given, creates a new Generator from that seed. If seed is None, returns the global Generator (or creates one from seed=0).

Parameters:

seed (int | None)

Return type:

Generator

att.config.seed.get_seed()[source]

Return the current global seed, or None if not set.

Return type:

int | None

YAML experiment configuration for reproducibility.

att.config.experiment.load_config(path)[source]

Load experiment configuration from a YAML file.

Supported keys: seed, embedding, topology, binding, benchmarks, transitions, surrogates, system, dataset, preprocessing.

Parameters:

path (str)

Return type:

dict

att.config.experiment.save_config(config, path)[source]

Save experiment parameters for reproducibility.

Parameters:
Return type:

None