1
Fork 0

feat(config): introduce polymorphic architecture configs

centralized/decentralized
This commit is contained in:
Tibo De Peuter 2026-04-14 22:06:15 +02:00
parent 157e061f86
commit 82dfcabede
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
6 changed files with 163 additions and 32 deletions

View file

@ -0,0 +1,21 @@
# Centralized Actor-Critic Architecture
# Baseline configuration with a single global sensor and motor.
# Default values are defined in CentralizedConfig dataclass.
# Use this configuration for standard PPO experiments.
sensor:
hidden_dims: [64, 64]
activation: "tanh"
motor:
hidden_dims: []
activation: "tanh"
feature_extractor:
hidden_dims: [64, 64]
activation: "tanh"
critic:
hidden_dims: []
activation: "tanh"

View file

@ -0,0 +1,31 @@
# Decentralized Actor Architecture (NerveNet-MLP variant)
# Multi-agent/distributed configuration using local sensors, propagators, and motors.
# Default values are defined in DecentralizedConfig dataclass.
# Use this configuration for decentralized execution experiments.
sensor:
hidden_dims: [64, 64]
activation: "tanh"
propagator:
hidden_dims: [64, 64]
activation: "tanh"
motor:
hidden_dims: []
activation: "tanh"
feature_extractor:
hidden_dims: [64, 64]
activation: "tanh"
critic:
hidden_dims: []
activation: "tanh"
# Synchronous message-passing rounds per control step
message_passing_steps: 1
# Connectivity topology (e.g., ring, fully_connected)
topology_type: "ring"