Files
Sarpy/bot/src/agent.py
T
2023-09-25 20:39:00 +01:00

21 lines
577 B
Python

import os
class Agent:
def __init__(self):
# If you need to load your model from a file this is the time to do it
# You can do something like:
#
# self.actor = # your Model
#
# cur_dir = os.path.dirname(os.path.realpath(__file__))
# with open(os.path.join(cur_dir, 'model.p'), 'rb') as file:
# model = pickle.load(file)
# self.actor.load_state_dict(model)
pass
def act(self, state):
# Evaluate your model here
action = [1, 0, 0, 0, 0, 0, 0, 0]
return action