Skip to content
Snippets Groups Projects
Commit fcb961d4 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

Update README.md

parent c1589590
No related branches found
No related tags found
No related merge requests found
...@@ -53,9 +53,9 @@ observation_builder = TreeObsForRailEnv(max_depth=tree_depth, predictor=predicto ...@@ -53,9 +53,9 @@ observation_builder = TreeObsForRailEnv(max_depth=tree_depth, predictor=predicto
The agent and the observation builder as well as an observation wrapper can be passed to the test function like this The agent and the observation builder as well as an observation wrapper can be passed to the test function like this
``` ```
test_score, test_dones, test_time = run_test(current_parameters, agent, observation_builder=your_observation_builder, test_score, test_dones, test_time = run_test(current_parameters, agent, observation_builder=your_observation_builder,
observation_wrapper=your_observation_wrapper, observation_wrapper=your_observation_wrapper,
test_nr=test_nr, nr_trials_per_test=10) test_nr=test_nr, nr_trials_per_test=10)
``` ```
In order to speed up the test time you can limit the number of trials per test (`nr_trials_per_test=10`). After you have made these changes to the file you can run `python score_tests.py` which will produce an output similiar to this: In order to speed up the test time you can limit the number of trials per test (`nr_trials_per_test=10`). After you have made these changes to the file you can run `python score_tests.py` which will produce an output similiar to this:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment