8000 feat(knapsack): generator by surana01 · Pull Request #139 · instadeepai/jumanji · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

feat(knapsack): generator #139

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

Merged
merged 4 commits into from
May 26, 2023
Merged

Conversation

surana01
Copy link
Contributor

Implement a Generator class for the Knapsack environment which is responsible for generating the Knapsack instances. This will include the following additions:

  • A generator.py script added to the knapsack folder which implements an abstract class Generator and a RandomGenerator to create a random uniform Knapsack instance.
  • A generator_test.py script to test the generator.
  • Modifications to env.py to include the generator in the init method and changes to conftest.py to include a DummyGenerator for testing purposes.

8000
@surana01 surana01 added the enhancement New feature or request label May 18, 2023
@surana01 surana01 requested a review from clement-bonnet May 18, 2023 15:09
@surana01 surana01 self-assigned this May 18, 2023
clement-bonnet
clement-bonnet previously approved these changes May 26, 2023
Copy link
Collaborator
@clement-bonnet clement-bonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Co-authored-by: Clément Bonnet <56230714+clement-bonnet@users.noreply.github.com>
@clement-bonnet clement-bonnet merged commit 87ebb7f into instadeepai:main May 26, 2023
@surana01 surana01 deleted the kp-generator branch May 26, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0