Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
baselines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xzhaoma
baselines
Commits
2dab5ba6
Commit
2dab5ba6
authored
5 years ago
by
gmollard
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
4470e889
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+6
-6
6 additions, 6 deletions
README.md
with
6 additions
and
6 deletions
README.md
+
6
−
6
View file @
2dab5ba6
...
...
@@ -14,31 +14,31 @@ Then, you can modify the config.gin file path at the end of the `grid_search_tra
The results will be stored inside the folder, and the learning curves can be visualized in
tensorboard:
`tensorboard --logdir=/path/to/foler_containing_config_gin_file`
.
``
`
tensorboard --logdir=/path/to/foler_containing_config_gin_file`
``
## Gin config files
In each config.gin files, all the parameters, except `local_dir` of the `run_experiment` functions have to be specified.
For example, to indicate the number of agents that have to be initialized at the beginning of each simulation, the following line should be added:
`run_experiment.n_agents = 2`
``
`
run_experiment.n_agents = 2
`
``
If several number of agents have to be explored during the experiment, one can pass the following value to the `n_agents` parameter:
`run_experiment.n_agents = {"grid_search": [2,5]}`
``
`
run_experiment.n_agents = {"grid_search": [2,5]}
`
``
which is the way to indicate to the tune library to experiment several values for a parameter.
To reference a class or an object within gin, you should first register it from the `train_experiment.py` script adding the following line:
`gin.external_configurable(TreeObsForRailEnv)`
``
`
gin.external_configurable(TreeObsForRailEnv)
`
``
and then a `TreeObsForRailEnv` object can be referenced in the `config.gin` file:
`
`
``
run_experiment.obs_builder = {"grid_search": [@TreeObsForRailEnv(), @GlobalObsForRailEnv()]}
TreeObsForRailEnv.max_depth = 2
`
`
``
Note that `@TreeObsForRailEnv` references the class, while `@TreeObsForRailEnv()` references instantiates an object of this class.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment