Skip to content

Add calc_ground_truth_policy_value to SyntheticBanditDataset #59

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
Feb 7, 2021

Conversation

usaito
Copy link
Contributor

@usaito usaito commented Jan 31, 2021

Overview

add calc_ground_truth_synthetic method to SyntheticBanditDataset class in the dataset module
This will ease the calculation of the ground-truth policy value of evaluation policies when we use synthetic bandit data to conduct the evaluation of OPE experiments

Before

スクリーンショット 2021-02-01 8 34 26

After

スクリーンショット 2021-02-01 8 34 50

codes from https://github.com/st-tech/zr-obp/blob/master/examples/quickstart/synthetic.ipynb

Review points

  • SyntheticBanditDataset.calc_ground_truth_synthetic
  • Testing structure (test_synthetic.py)
  • Testing code (test_synthetic.py)

@usaito
Copy link
Contributor Author

usaito commented Jan 31, 2021

@nmasahiro Can you review this PR?

@usaito usaito changed the title Add calc_ground_truth_synthetic to SyntheticBanditDataset Add calc_ground_truth_policy_value to SyntheticBanditDataset Jan 31, 2021
@nomuramasahir0
Copy link
Contributor

@usaito LGTM!
Can you run the black command? (I found some inconsistency in my local pc.)

@usaito
Copy link
Contributor Author

usaito commented Feb 6, 2021

@nmasahiro Thanks! How about this time?

@usaito usaito merged commit 0d39b77 into master Feb 7, 2021
@usaito usaito deleted the calc-ground-truth-synthetic branch February 7, 2021 14:37
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.

2 participants