Skip to content

feature/datasets - add scavenger example dataset #52

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 8 commits into from
May 20, 2025
Merged

Conversation

lenarddome
Copy link
Collaborator

Dataset loading functions updates:

  • cpm/datasets/base.py: Modified the load_bandit_data function to update column names and added a new function load_risky_choices to load the risky choices dataset.

Test cases for dataset loading functions:

  • test/datasets/test_datasets.py: Added test cases for load_csv, load_bandit_data, and load_risky_choices functions using pytest and unittest.mock for mocking file existence and pandas.read_csv behavior.

New dataset addition:

@lenarddome lenarddome requested a review from Copilot April 7, 2025 11:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • cpm/datasets/data/risky_choices.csv: Language not supported
Comments suppressed due to low confidence (1)

cpm/datasets/base.py:50

  • [nitpick] Consider rephrasing 'this variable is clutter' to clearer, more formal language for improved readability.
        - `index`: variable to identify each row - this variable is clutter.

@lenarddome lenarddome merged commit f1f5fe9 into main May 20, 2025
@lenarddome lenarddome deleted the feature/datasets branch May 26, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant