-
Notifications
You must be signed in to change notification settings - Fork 91
feat(connector): random walk board generator #120
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
feat(connector): random walk board generator #120
Conversation
5a8f4ef
to
a81171b
Compare
61a26ce
to
a12b23c
Compare
fb15e20
to
36ab997
Compare
af8a0a7
to
d54ab1c
Compare
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.
Thank you for your contribution. I am looking forward to testing this new generator that guarantees solvability. There are lots of uses of scan
when the computation has nothing inherently sequential. I believe replacing them with vmap
will make the generator much faster. Please let me know if you have any questions.
FYI, we just merge #119 which makes Connector a single-agent environment (aggregates rewards and also simplifies the observation). Though this should not change this PR I think. |
0ba4336
to
7999007
Compare
feat: updating tests and improving generation_methods bugfix: adjusting tests following vmap updates feat: refactoring generation methods into generator - refactoring generation methods into one generator class and updating codebase to pass linting tests feat: updating typing in Agent dataclass docs: updating docstrings in generatory.py bugfix: add extra line for black bugfix: removing unused import Empty commit
6511ecd
to
3549547
Compare
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.
Hi, I left a few more comments, almost there!
Co-authored-by: Clément Bonnet <56230714+clement-bonnet@users.noreply.github.com>
Returning agent in generate_board function Adding square assumption to grid
Adding first move at initalisation to ensure all wires have at least length 2
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 for this contribution! Would be great if we could avoid the code duplication 😄
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.
Thank you for your contribution!
Creating placeholder board generator, board class and updating tests