Traffic-Control / agent /__init__.py
Dhaerya's picture
Add files
b00d5d5
raw
history blame contribute delete
503 Bytes
"""
Agent package.
Provides:
BaseAgent β€” abstract interface
QLearningAgent β€” tabular Q-learning (NumPy only)
DQNAgent β€” Deep Q-Network (PyTorch, GPU-accelerated)
"""
from .base_agent import BaseAgent
from .q_learning_agent import QLearningAgent
# DQN requires PyTorch
try:
from .dqn_agent import DQNAgent
DQN_AVAILABLE = True
except ImportError:
DQN_AVAILABLE = False
DQNAgent = None # type: ignore
__all__ = ["BaseAgent", "QLearningAgent", "DQNAgent"]