You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
459 B
18 lines
459 B
from agent import Agent
|
|
from state import JointState
|
|
|
|
|
|
class Human(Agent):
|
|
def __init__(self, config, section):
|
|
super(Human, self).__init__(config, section)
|
|
|
|
def act(self, ob):
|
|
"""
|
|
The state for human is its full state and all other agents' observable states
|
|
:param ob:
|
|
:return:
|
|
"""
|
|
state = JointState(self.get_full_state(), ob)
|
|
action = self.policy.predict(state)
|
|
return action
|