File size: 1,345 Bytes
2b9a95b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | """
Environment module - SCM and environment variable handling.
This module contains:
- CausalSCM: Abstract base class for all SCMs
- SCM Registry: Factory for creating SCM instances
- Individual SCM implementations in separate files
- EnvironmentGenerator: Variable generation with discovery system
Key principle: Only this module changes for different causal experiments.
Game module remains fixed.
Available SCMs:
- DefaultSCM ("base"): Minimal SCM with no traps
- AntennaTrapSCM ("antenna_trap"): Antenna detection trap experiment
"""
from .scm_base import (
CausalSCM,
BaseSCM,
EnvironmentState,
CausalVariable,
StructuralEquation,
)
from .scm_registry import (
get_scm_for_experiment,
register_scm,
list_experiments,
SCM_REGISTRY,
)
# Import SCM classes for direct access
from .default_scm import DefaultSCM
from .antenna_trap_scm import AntennaTrapSCM
# Import environment generator
from .generator import EnvironmentGenerator
__all__ = [
# Base classes
'CausalSCM',
'BaseSCM',
'EnvironmentState',
'CausalVariable',
'StructuralEquation',
# Registry
'get_scm_for_experiment',
'register_scm',
'list_experiments',
'SCM_REGISTRY',
# SCM implementations
'DefaultSCM',
'AntennaTrapSCM',
# Environment utilities
'EnvironmentGenerator',
]
|