-
Notifications
You must be signed in to change notification settings - Fork 180
Seeding RL Folder #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeding RL Folder #178
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR! I will try to review it in detail Wednesday.
On a high level, the way you structured it looks good!
rl/model/epstein_civil_violence/policies/policy_citizen/policy_state.pkl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, it looks like a very complete PR including documentation and visualisation. I added some comments. They are all just suggestions, if you like them you can adopt them if not it's also okay.
Finally, consider adding a test_rl
optional dependency in the pyproject.toml
, so we know what dependencies are needed to run this RL example.
Lines 12 to 20 in 3d29e4c
[project.optional-dependencies] | |
test = [ | |
"pytest", | |
"scipy", | |
] | |
test_gis = [ | |
"pytest", | |
"momepy", | |
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice visualisation!
Can we add some metric for how well the cops are doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some lines about the nature of Readme; specifying particular metrics might be challenging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like mean arrest per cop per day?
for more information, see https://pre-commit.ci
I'm doing some CI testing on this branch. CI runs here. |
I seem to be needing far more dependencies, at least rl_example = [
"stable-baselines3",
"seaborn",
"mesa",
"tensorboard",
"ray",
"dm_tree",
"pyarrow",
"typer",
] It looks like especially Edit: Should we install ray with the rllib extra? |
One more point: Could you place everything specific to the After that I'm good to merge, we could improve other points later. |
I think everything related to Epstein is in Esptein's folder. The example.py shows how to run esptein's model hence, it is in rl folder. It will be common for all runs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we probably will encounter some stuff when we're adding the CI, but we can solve those in separate PRs. For now this looks good.
Shall I merge?
@harshmahesheka for context, I asked @jackiekazil for a review, since she was your primary mentor on this project. |
Add seeding RL examples folder (projectmesa#178) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Partially adding RL implementations, which was part of my GSoC project, to mesa-examples. The current pr contains the addition of documentation, tutorials and the Epstein-civil violence model.