-
Notifications
You must be signed in to change notification settings - Fork 11
Agents
M Charity edited this page Nov 12, 2021
·
2 revisions
Evaluator Agents are saved in the agents folder with the extension [NAME]_AGENT.js and contains the following examples:
- default_AGENT.js - original agent for the Baba is Y'all website evaluator
- random_AGENT.js - returns a sequence of length 50 containing random steps
- empty_AGENT.js - an empty template agent
Output reports for agent results are saved to the reports folder based in the form [NAME]_report.json with the following information for each level evaluated by the agent:
- id - the id number for the level evaluated as specified in the level's level_set file.
-
iterations - number of calls to the agent's
stepfunction until a solution was found- (Default Maximum per agent: 10k iterations)
-
time - real-time taken by the agent until a solution was found
- (Default Maximum per agent: 10 seconds)
-
solution - agent's returned solution for the level in abbreviated form
- (Key: see simulation description)
- Copy the empty_AGENT.py a new file with the format
[NAME]_AGENT.pyand save it in the agents folder - (Optional) Create any initializing function needed (i.e. queue setup, tree setup, model setup, etc.) and include it in the
init()function definition of themodule_exportsobject - Code the step-wise execution code in the
iter_solvefunction. The exec.js module will run the agent'sstep()function every iteration and pass it the initial game state of the level.
- On the right side of the interface page, select a level set to evaluate an agent on by clicking the dropdown.
- Note: Level sets are stored in json_levels
- Select an agent to evaluate on by clicking the dropdown
- Click the 'Run Agent' button to start the evaluation.
- Note: Only unsolved level will be solved
- Click the 'Pause Agent' button at any time to stop the evaluation
- Click the 'Reset all levels' button to delete the saved reports for this agent on this level set