Skip to content

Commit 0549fa4

Browse files
committed
Fix imports
1 parent aa8ad99 commit 0549fa4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

agents/attackers/q_learning/q_agent.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313

1414
from os import path, makedirs
1515
# with the path fixed, we can import now
16-
from AIDojoCoordinator.game_components import Action, Observation, GameState, AgentStatus
17-
from NetSecGameAgents.agents.base_agent import BaseAgent
18-
from NetSecGameAgents.agents.agent_utils import generate_valid_actions, state_as_ordered_string
16+
from netsecgame.game_components import (
17+
Action,
18+
Observation,
19+
GameState, AgentStatus, BaseAgent, generate_valid_actions, state_as_ordered_string, AgentRole
20+
)
1921

2022
class QAgent(BaseAgent):
2123

22-
def __init__(self, host, port, role="Attacker", alpha=0.1, gamma=0.6, epsilon_start=0.9, epsilon_end=0.1, epsilon_max_episodes=5000, apm_limit:int=None) -> None:
24+
def __init__(self, host, port, role=AgentRole.Attacker, alpha=0.1, gamma=0.6, epsilon_start=0.9, epsilon_end=0.1, epsilon_max_episodes=5000, apm_limit:int=None) -> None:
2325
super().__init__(host, port, role)
2426
self.alpha = alpha
2527
self.gamma = gamma

0 commit comments

Comments
 (0)