Commit 3474eebf authored by Dipam Chakraborty's avatar Dipam Chakraborty
Browse files

add random agent

parent 812e63f0
class DeepracerAgent():
def __init__(self):
self.agent_type = None
def register_reset(self, observations):
raise NotImplementedError
def compute_action(self, observations, info):
raise NotImplementedError
\ No newline at end of file
import numpy as np
from deepracer_base_agent import DeepracerAgent
class RandomDeepracerAgent(DeepracerAgent):
def __init__(self):
pass
def register_reset(self, observations):
action = np.random.randint(5)
return action
def compute_action(self, observations, info):
action = np.random.randint(5)
return action
{
"challenge_id": "evaluations-api-deepracer",
"grader_id": "evaluations-api-deepracer",
"challenge_id": "neurips-2021-aws-deepracer-ai-driving-olympics-challenge",
"authors": ["aicrowd-bot"],
"tags": "change-me",
"description": "Random agent for AWS Deep Racer",
"description": "Random agent for AWS Deep Racer"
}
from agents.random_agent import RandomDeepracerAgent
class LocalEvaluationConfig:
submission_agent = RandomDeepracerAgent
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment