Add probability dataset (initial: Coin Flip dataset + curriculum) #505
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi all 👋,
I’m Anant, and this is my very first open-source contribution (so please excuse any rough edges 🙏🥺).
I’ve been interested in reasoning tasks for a while, and I thought a probability tasks would be a useful addition to
reasoning_gym.As a first step, I’ve implemented the Coin Flip dataset + curriculum as a simple example.
I’d be very happy to receive feedback and improve this PR. I also plan to keep contributing more probability-related tasks in the future.
Overview
This PR introduces a new
probabilitymodule toreasoning_gym. The first dataset included is the Coin Flip dataset, which covers:Implementation Details
reasoning_gym/probability/coin_flip.pyCoinFlipDatasetandCoinFlipCurriculum.tests/test_coin_flip.pyExample
This lays the groundwork for more probability tasks that I plan to add later (e.g., identical/non-identical objects distribution problems, expectation problems). I welcome any feedback or advice, and I’m eager to learn and improve 🙂.
Thanks, Let me know if i missed something.