author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
641,014 | 05.08.2020 09:42:03 | -32,400 | d03938dfbab4301c0a302df6ae8418927049b8f5 | add types.py | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "obp/types.py",
"diff": "+# Copyright (c) ZOZO Technologies, Inc. All rights reserved.\n+# Licensed under the Apache 2.0 License.\n+\n+\"\"\"Types.\"\"\"\n+from typing import Union, Dict\n+import numpy as np\n+\n+from .policy import BaseContextFr... | Python | Apache License 2.0 | st-tech/zr-obp | add types.py |
641,014 | 14.08.2020 16:22:11 | -32,400 | c0d091d9de8cc14d09ee8ba195e8130dd20ef950 | rename dirs in examples | [
{
"change_type": "RENAME",
"old_path": "examples/obd/README.md",
"new_path": "examples/examples_with_obd/README.md",
"diff": "@@ -46,9 +46,9 @@ python evaluate_off_policy_estimators.py\\\n# random_state=12345\n# --------------------------------------------------\n# mean 95.0% CI (lower) 95.0% CI (up... | Python | Apache License 2.0 | st-tech/zr-obp | rename dirs in examples |
641,014 | 17.08.2020 10:27:37 | -32,400 | f06de3fc6fa624c36b3708b463de3b18e784ba5d | add assertion errors | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_with_obd/README.md",
"new_path": "examples/examples_with_obd/README.md",
"diff": "@@ -5,12 +5,12 @@ We then evaluate the performances of some contextual bandit policies by using OP\n## Descriptions\n-- `conf/`\n- - [`./conf/batch_size_bts.yam... | Python | Apache License 2.0 | st-tech/zr-obp | add assertion errors |
641,014 | 24.08.2020 16:37:11 | -32,400 | ccc7d5d574a41b23227512e4b69d9c0420e215ed | update docs and docstring | [
{
"change_type": "MODIFY",
"old_path": "docs/index.rst",
"new_path": "docs/index.rst",
"diff": "You can adapt this file completely to your liking, but it should at least\ncontain the root `toctree` directive.\n-Welcome to obp's documentation!\n-====================================\n-\n.. image:: ./_... | Python | Apache License 2.0 | st-tech/zr-obp | update docs and docstring |
641,014 | 25.08.2020 12:24:09 | -32,400 | 34f47f4f0da40aa8bcb9f556e608c42969568274 | fix error in regression model | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -100,7 +100,7 @@ class OffPolicyEvaluation:\nraise RuntimeError(f\"Missing key of {key_} in 'bandit_feedback'.\")\nif self.regression_model is not None:\n- if check_is_fitted(self.regression_model):\... | Python | Apache License 2.0 | st-tech/zr-obp | fix error in regression model |
641,014 | 25.08.2020 12:51:22 | -32,400 | c717ec4df21a42b38090f6c2d07efaa8486364ab | add benchmarking experiments on OPE estimators | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "benchmark/ope/README.md",
"diff": "+# Benchmarking Off-Policy Estimators\n+\n+## Overview\n+\n+\n+## Experimental Settings\n+\n+\n+## Usage\n+\n+\n+## Benchmark Results\n+\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path... | Python | Apache License 2.0 | st-tech/zr-obp | add benchmarking experiments on OPE estimators |
641,014 | 02.09.2020 23:08:25 | -32,400 | 09226ee49037361c1f119aa7154dd2eddeb42b31 | add `convert_to_action_dist` func | [
{
"change_type": "MODIFY",
"old_path": "obp/utils.py",
"new_path": "obp/utils.py",
"diff": "@@ -59,6 +59,34 @@ def estimate_confidence_interval_by_bootstrap(\n}\n+def convert_to_action_dist(n_actions: int, selected_actions: np.ndarray,) -> np.ndarray:\n+ \"\"\"Convert selected actions (output of `ru... | Python | Apache License 2.0 | st-tech/zr-obp | add `convert_to_action_dist` func |
641,014 | 02.09.2020 23:08:53 | -32,400 | 0b42be36695e948657ce3ccf48e9f370cea7da44 | modify the output of the offline bandit simulator | [
{
"change_type": "MODIFY",
"old_path": "obp/simulator/simulator.py",
"new_path": "obp/simulator/simulator.py",
"diff": "@@ -6,7 +6,7 @@ from tqdm import tqdm\nimport numpy as np\n-from ..utils import check_bandit_feedback_inputs\n+from ..utils import check_bandit_feedback_inputs, convert_to_action_d... | Python | Apache License 2.0 | st-tech/zr-obp | modify the output of the offline bandit simulator |
641,014 | 08.09.2020 13:14:12 | -32,400 | 17a7417b7a569f7214ef18580c4c51b4a27d13f6 | add time series split case to benchmark | [
{
"change_type": "MODIFY",
"old_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"new_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"diff": "@@ -65,6 +65,17 @@ if __name__ == \"__main__\":\nrequired=True,\nhelp=\"campaign name, men, women, or all.\",\n)\n+ parser.add_argument(... | Python | Apache License 2.0 | st-tech/zr-obp | add time series split case to benchmark |
641,014 | 08.09.2020 15:56:02 | -32,400 | 830ef065263e432f3fdbb293c5863df561f2e7aa | modify OPL and regression model to adjust to the list structure | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -15,7 +15,7 @@ import seaborn as sns\nfrom .estimators import BaseOffPolicyEstimator\nfrom .regression_model import RegressionModel\nfrom ..types import BanditFeedback\n-from ..utils import check_is_... | Python | Apache License 2.0 | st-tech/zr-obp | modify OPL and regression model to adjust to the list structure |
641,014 | 08.09.2020 15:59:21 | -32,400 | 880f240eb673add1a201469fbbaa102461dcb2d7 | add benchmark to exclude | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -33,7 +33,7 @@ setup(\n\"tqdm>=4.41.1\",\n],\nlicense=\"Apache License\",\n- packages=find_packages(exclude=[\"obd\", \"examples\", \"tests\", \"docs\"]),\n+ packages=find_packages(exclude=[\"benchmark\", \"docs\"... | Python | Apache License 2.0 | st-tech/zr-obp | add benchmark to exclude |
641,014 | 08.09.2020 23:07:57 | -32,400 | ff8b81b7ec43035734c348668f7b469f9b63151c | modify the usage of action_context in reg model | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -38,9 +38,6 @@ class OffPolicyEvaluation:\nList of OPE estimators used to evaluate the policy value of evaluation policy.\nEstimators must follow the interface of `obp.ope.BaseOffPolicyEstimator`.\n-... | Python | Apache License 2.0 | st-tech/zr-obp | modify the usage of action_context in reg model |
641,014 | 09.09.2020 00:43:21 | -32,400 | c00e324c9c95aef9086611a7e59235d8c8656bae | adjust to the change of reg model | [
{
"change_type": "MODIFY",
"old_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"new_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"diff": "@@ -8,7 +8,7 @@ import pandas as pd\nfrom obp.dataset import OpenBanditDataset\nfrom obp.simulator import run_bandit_simulation\n-from o... | Python | Apache License 2.0 | st-tech/zr-obp | adjust to the change of reg model |
641,014 | 09.09.2020 00:43:44 | -32,400 | d47dc07d9d4a81872d41684a4200a69f88fc494f | add cf policy search codes | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "benchmark/ope/README.md",
"diff": "+\n+\n+\n+### train regression model\n+\n+```\n+for model in logistic_regression lightgbm\n+do\n+ for pi_b in random\n+ do\n+ for camp in men women all\n+ do\n+ screen python train_regression_model.py\\\n+ --n_... | Python | Apache License 2.0 | st-tech/zr-obp | add cf policy search codes |
641,014 | 26.09.2020 11:50:21 | -32,400 | 122ce001ef8cc726a33720235a2692049b92928b | update ope estimators | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/estimators.py",
"new_path": "obp/ope/estimators.py",
"diff": "@@ -481,6 +481,7 @@ class DirectMethod(BaseOffPolicyEstimator):\ndef _estimate_round_rewards(\nself,\n+ position: np.ndarray,\naction_dist: np.ndarray,\nestimated_rewards_by_reg_model: np.nd... | Python | Apache License 2.0 | st-tech/zr-obp | update ope estimators |
641,014 | 01.10.2020 03:57:34 | -32,400 | 7c6fd39463a09b857eb770af8b8e13d84297b263 | add `is_zozotown_prior` to BernoulliTS | [
{
"change_type": "MODIFY",
"old_path": "benchmark/cf_policy_search/README.md",
"new_path": "benchmark/cf_policy_search/README.md",
"diff": "-### run cf policy search\n+# Counterfactual Policy Search\n+\n+## Description\n+\n+## Running Counterfactual Policy Search\n```\nfor model in lightgbm\n@@ -20,... | Python | Apache License 2.0 | st-tech/zr-obp | add `is_zozotown_prior` to BernoulliTS |
641,014 | 01.10.2020 14:06:58 | -32,400 | 6371b0af98e810b1be74d406bbfd349da1fd3960 | update docs of meta.py | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -50,38 +50,37 @@ class OffPolicyEvaluation:\n# using log data generated by the Random policy\n>>> from obp.dataset import OpenBanditDataset\n>>> from obp.policy import BernoulliTS\n- >>> from obp.sim... | Python | Apache License 2.0 | st-tech/zr-obp | update docs of meta.py |
641,014 | 01.10.2020 23:02:29 | -32,400 | 9be6f9c973f098572218de6f1a01cf945946aa27 | add default preprocessing of action_context | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -13,7 +13,7 @@ from ..utils import check_bandit_feedback_inputs\n@dataclass\nclass RegressionModel:\n- \"\"\"ML model to predict the mean reward function (:math:`E[Y | X, A]`)... | Python | Apache License 2.0 | st-tech/zr-obp | add default preprocessing of action_context |
641,014 | 01.10.2020 23:02:54 | -32,400 | 79bb28863b5c6165b18c6e24c37d2157c771b2c1 | add some benchmark estimators to the synthetic example | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_with_synthetic/README.md",
"new_path": "examples/examples_with_synthetic/README.md",
"diff": "@@ -8,7 +8,8 @@ Specifically, we evaluate the estimation performances of well-known off-policy e\n## Evaluating Off-Policy Estimators\n-In the follo... | Python | Apache License 2.0 | st-tech/zr-obp | add some benchmark estimators to the synthetic example |
641,014 | 06.10.2020 00:34:15 | -32,400 | ffc8cf0b99017b581a4c7f87f268cfe74d2433cf | modify regression_model | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -13,9 +13,7 @@ import pandas as pd\nimport seaborn as sns\nfrom .estimators import BaseOffPolicyEstimator\n-from .regression_model import RegressionModel\nfrom ..types import BanditFeedback\n-from ..... | Python | Apache License 2.0 | st-tech/zr-obp | modify regression_model |
641,014 | 06.10.2020 01:20:37 | -32,400 | 018d6a9e4ebfb9de4eb8f0bbb3a182962611f6ba | adjust to the new implementation of regression model | [
{
"change_type": "MODIFY",
"old_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"new_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"diff": "@@ -12,11 +12,29 @@ from obp.ope import (\nOffPolicyEvaluation,\nInverseProbabilityWeighting,\nSelfNormalizedInverseProbabilityWeighting... | Python | Apache License 2.0 | st-tech/zr-obp | adjust to the new implementation of regression model |
641,014 | 23.10.2020 06:57:12 | -32,400 | 2e089d876225be53597daf10203cc89ea200680b | fix some bugs in cross-fitting | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -7,7 +7,7 @@ from typing import Optional\nimport numpy as np\nfrom sklearn.base import BaseEstimator, clone, is_classifier\n-from sklearn.model_selection import StratifiedKFol... | Python | Apache License 2.0 | st-tech/zr-obp | fix some bugs in cross-fitting |
641,014 | 31.10.2020 01:19:44 | -32,400 | 1a3c7d7ea9cd13ed9ef24ae8e0eee59f2858d5c9 | fix typos in quickstarts | [
{
"change_type": "MODIFY",
"old_path": "examples/quickstart/quickstart.ipynb",
"new_path": "examples/quickstart/quickstart.ipynb",
"diff": "\"source\": [\n\"## (1) Data Loading and Preprocessing\\n\",\n\"\\n\",\n- \"We prepare easy-to-use data loader for Open Bandit Dataset, **OpenBanditDataset** cl... | Python | Apache License 2.0 | st-tech/zr-obp | fix typos in quickstarts |
641,002 | 05.11.2020 16:46:08 | -32,400 | 867fd0338f7d9d454adad162c4f8278ba25cc567 | add random_state as argument to fit_predict | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -213,6 +213,7 @@ class RegressionModel(BaseEstimator):\nposition: Optional[np.ndarray] = None,\naction_dist: Optional[np.ndarray] = None,\nn_folds: int = 1,\n+ random_state: i... | Python | Apache License 2.0 | st-tech/zr-obp | add random_state as argument to fit_predict |
641,014 | 05.11.2020 22:08:50 | -32,400 | c88b399534680e674913d0f4312aee707fee154a | update READMEs about the data | [
{
"change_type": "MODIFY",
"old_path": "obd/README.md",
"new_path": "obd/README.md",
"diff": "# Open Bandit Dataset\n-This directory contains the small size (10,000 records for each pair of campaign and behavior policy) version of our data that can be used for running [examples](https://github.com/s... | Python | Apache License 2.0 | st-tech/zr-obp | update READMEs about the data |
641,014 | 07.11.2020 04:00:02 | -32,400 | 7f771352a7a2559067ee2ac0ad91729a95672d59 | add new eval metric for ope | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -9,7 +9,7 @@ from pathlib import Path\nimport matplotlib.pyplot as plt\nimport numpy as np\n-import pandas as pd\n+from pandas import DataFrame\nimport seaborn as sns\nfrom .estimators import BaseOff... | Python | Apache License 2.0 | st-tech/zr-obp | add new eval metric for ope |
641,014 | 07.11.2020 05:13:24 | -32,400 | 83f470be64c71a8e9253334f4e144201412fa82f | refactor estimators | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/estimators.py",
"new_path": "obp/ope/estimators.py",
"diff": "@@ -91,10 +91,10 @@ class ReplayMethod(BaseOffPolicyEstimator):\naction_match = np.array(\naction_dist[np.arange(action.shape[0]), action, position] == 1\n)\n- round_rewards = np.zeros_like(... | Python | Apache License 2.0 | st-tech/zr-obp | refactor estimators |
641,014 | 07.11.2020 05:13:47 | -32,400 | 6e9cdfd34d14960c64d084ca870fe68eb26449e7 | add random_state for seaborn.barplot | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -48,7 +48,7 @@ class OffPolicyEvaluation:\n>>> bandit_feedback.keys()\ndict_keys(['n_rounds', 'n_actions', 'action', 'position', 'reward', 'pscore', 'context', 'action_context'])\n- # (2) Offline Ban... | Python | Apache License 2.0 | st-tech/zr-obp | add random_state for seaborn.barplot |
641,014 | 07.11.2020 18:19:10 | -32,400 | 9636dde8269d0b6090df4234fe9a5c26cb6b5e0f | add continuous reward option | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/synthetic.py",
"new_path": "obp/dataset/synthetic.py",
"diff": "@@ -6,6 +6,7 @@ from dataclasses import dataclass\nfrom typing import Optional, Callable\nimport numpy as np\n+from scipy.stats import truncnorm\nfrom sklearn.utils import check_random... | Python | Apache License 2.0 | st-tech/zr-obp | add continuous reward option |
641,014 | 08.11.2020 01:20:13 | -32,400 | 16bfda887c41385d52886f3855599f3dc81f15bc | refactor dataset module | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/__init__.py",
"new_path": "obp/dataset/__init__.py",
"diff": "from .base import *\nfrom .real import *\nfrom .synthetic import *\n+from .multiclass import *\n"
},
{
"change_type": "MODIFY",
"old_path": "obp/dataset/synthetic.py",
"n... | Python | Apache License 2.0 | st-tech/zr-obp | refactor dataset module |
641,014 | 08.11.2020 01:44:48 | -32,400 | b5a3a66c8bb8321cb853e653d27aea3fa265ebc6 | fix some docstring inconsistencies | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/multiclass.py",
"new_path": "obp/dataset/multiclass.py",
"diff": "@@ -24,16 +24,16 @@ class MultiClassToBanditReduction(BaseSyntheticBanditDataset):\nA machine learning classifier such as logistic regression is used to construct behavior and evalua... | Python | Apache License 2.0 | st-tech/zr-obp | fix some docstring inconsistencies |
641,014 | 09.11.2020 23:01:20 | -32,400 | ddcda69155254064d1ebf3895b0ef509658600ec | fix ipw learner | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/offline.py",
"new_path": "obp/policy/offline.py",
"diff": "\"\"\"Offline Bandit Algorithms.\"\"\"\nfrom dataclasses import dataclass\n-from typing import Tuple\n+from typing import Tuple, Optional\nimport numpy as np\n+from sklearn.base import clone... | Python | Apache License 2.0 | st-tech/zr-obp | fix ipw learner |
641,014 | 10.11.2020 06:15:39 | -32,400 | 45856d5c87fe55d43ef7fdc52c7b94b5295f0981 | fix potential error in the fit_predict method of RegressionModel | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -14,16 +14,16 @@ from ..utils import check_bandit_feedback_inputs\n@dataclass\nclass RegressionModel(BaseEstimator):\n- \"\"\"Machine learning model to estimate the mean rewar... | Python | Apache License 2.0 | st-tech/zr-obp | fix potential error in the fit_predict method of RegressionModel |
641,014 | 10.11.2020 16:42:54 | -32,400 | 9d5ab1f3f3632fcfe0db4ba73840b4001166eb4f | add predict_proba method along with some refactoring | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/offline.py",
"new_path": "obp/policy/offline.py",
"diff": "@@ -10,13 +10,14 @@ from scipy.special import softmax\nfrom sklearn.base import clone, ClassifierMixin, is_classifier\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.utils... | Python | Apache License 2.0 | st-tech/zr-obp | add predict_proba method along with some refactoring |
641,014 | 11.11.2020 01:06:55 | -32,400 | 2cac0170ac846fcd24621c8fcd1d289bc8366220 | fix output of obtain_batch_bandit_feedabck and sample_bootstrap_bandit_feedback of OpenBanditDataset | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/real.py",
"new_path": "obp/dataset/real.py",
"diff": "\"\"\"Dataset Class for Real-World Logged Bandit Feedback.\"\"\"\nfrom dataclasses import dataclass\nfrom pathlib import Path\n-from typing import Optional\n+from typing import Optional, Tuple, ... | Python | Apache License 2.0 | st-tech/zr-obp | fix output of obtain_batch_bandit_feedabck and sample_bootstrap_bandit_feedback of OpenBanditDataset |
641,014 | 11.11.2020 14:19:42 | -32,400 | 55d28f607e56dc1603fdcb8cbb13a5d2573d9c21 | update output of obtain_batch_bandit_feedback of OpenBanditDataset | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/real.py",
"new_path": "obp/dataset/real.py",
"diff": "\"\"\"Dataset Class for Real-World Logged Bandit Feedback.\"\"\"\nfrom dataclasses import dataclass\nfrom pathlib import Path\n-from typing import Optional, Tuple, Union\n+from typing import Opt... | Python | Apache License 2.0 | st-tech/zr-obp | update output of obtain_batch_bandit_feedback of OpenBanditDataset |
641,014 | 11.11.2020 14:20:06 | -32,400 | 286c4026fa5fe5ec0efb57e4adf0d4332eba587e | update comments in the benchmarking codes | [
{
"change_type": "MODIFY",
"old_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"new_path": "benchmark/ope/benchmark_off_policy_estimators.py",
"diff": "@@ -17,23 +17,16 @@ from obp.ope import (\nDoublyRobust,\nSelfNormalizedDoublyRobust,\nSwitchDoublyRobust,\n- SwitchInverseProbabilityWe... | Python | Apache License 2.0 | st-tech/zr-obp | update comments in the benchmarking codes |
641,014 | 13.11.2020 03:40:41 | -32,400 | 425cbd921bb3dc946ed903b7a6dcd6df46354e94 | fix the definition of sndr | [
{
"change_type": "MODIFY",
"old_path": "docs/estimators.rst",
"new_path": "docs/estimators.rst",
"diff": "@@ -57,7 +57,7 @@ IPW does not have these properties.\nWe can define Self-Normalized Doubly Robust (SNDR) in a similar manner as follows.\n.. math::\n- \\hat{V}_{\\mathrm{SNDR}} (\\pi_e; \\calD)... | Python | Apache License 2.0 | st-tech/zr-obp | fix the definition of sndr |
641,014 | 13.11.2020 03:40:55 | -32,400 | 8ad89a2056b8f6557ae9612ef8d9fb1cadb426b2 | rerun example with new updates | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_with_synthetic/README.md",
"new_path": "examples/examples_with_synthetic/README.md",
"diff": "## Description\n-Here, we use synthetic bandit datasets and pipeline to evaluate OPE estimators.\n-Specifically, we evaluate the estimation performa... | Python | Apache License 2.0 | st-tech/zr-obp | rerun example with new updates |
641,014 | 13.11.2020 23:02:09 | -32,400 | cfc13d26d3a6abce4132da1e7242b0292f5ade35 | update docstring of IPWLeaner | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/offline.py",
"new_path": "obp/policy/offline.py",
"diff": "@@ -245,8 +245,8 @@ class IPWLearner(BaseOfflinePolicyLearner):\n.. math::\n- & P (A_1 = a_1 | x) = \\\\frac{e^{f(x,a_1,1) / \\\\tau}}{\\\\sum_{a^{\\\\prime} \\\\in \\\\mathcal{A}} e^{f(x,a^... | Python | Apache License 2.0 | st-tech/zr-obp | update docstring of IPWLeaner |
641,003 | 29.11.2020 02:23:49 | -32,400 | 9efcdec837117b08d90bd13cb23fbb2ebbd1f383 | complement the advance preparation for quickstart | [
{
"change_type": "MODIFY",
"old_path": "docs/quickstart.rst",
"new_path": "docs/quickstart.rst",
"diff": "@@ -5,6 +5,8 @@ Quickstart\nWe show an example of conducting offline evaluation of the performance of Bernoulli Thompson Sampling (BernoulliTS) as an evaluation policy using *Inverse Probability... | Python | Apache License 2.0 | st-tech/zr-obp | complement the advance preparation for quickstart |
641,003 | 01.12.2020 20:53:12 | -32,400 | e8cdc0ade3d0dad5f987f1c424063d05be53664e | add description for contribution to README | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -307,6 +307,10 @@ If you are interested in the Open Bandit Project, we can follow the updates at i\n# Contact\nFor any question about the paper, data, and pipeline, feel free to contact: saito@hanjuku-kaso.com\n... | Python | Apache License 2.0 | st-tech/zr-obp | add description for contribution to README |
641,012 | 09.12.2020 11:38:09 | 18,000 | 7592b54d6f723f475084d17e5648d88ae50365d6 | move policy_name into post_init | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/contextfree.py",
"new_path": "obp/policy/contextfree.py",
"diff": "@@ -49,13 +49,14 @@ class EpsilonGreedy(BaseContextFreePolicy):\n\"\"\"\nepsilon: float = 1.0\n- policy_name: str = f\"egreedy_{epsilon}\"\ndef __post_init__(self) -> None:\n\"\"\"In... | Python | Apache License 2.0 | st-tech/zr-obp | move policy_name into post_init |
641,014 | 12.12.2020 02:42:17 | -32,400 | 438a4dbaf025e321396f2aeada4a5dd6489cff11 | use n_rounds instead of n_samples in multiclass.py | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/multiclass.py",
"new_path": "obp/dataset/multiclass.py",
"diff": "@@ -50,11 +50,11 @@ class MultiClassToBanditReduction(BaseSyntheticBanditDataset):\nParameters\n-----------\n- X: array-like, shape (n_samples,n_features)\n+ X: array-like, shape (n_... | Python | Apache License 2.0 | st-tech/zr-obp | use n_rounds instead of n_samples in multiclass.py |
641,006 | 17.12.2020 00:49:46 | -32,400 | 81e84643c2569256002ef228fe9cb74d457daa61 | add ope estimator names in __init__.py | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/__init__.py",
"new_path": "obp/ope/__init__.py",
"diff": "from .estimators import *\nfrom .meta import *\nfrom .regression_model import *\n+\n+__all_estimators__ = [\n+ \"ReplayMethod\",\n+ \"InverseProbabilityWeighting\",\n+ \"SelfNormalizedInversePro... | Python | Apache License 2.0 | st-tech/zr-obp | add ope estimator names in __init__.py |
641,003 | 20.12.2020 13:58:26 | -32,400 | 84f6849717ee99f681803c15ed2f741f079eb6e4 | replace assert with ValueError for epsilon | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/contextfree.py",
"new_path": "obp/policy/contextfree.py",
"diff": "@@ -53,9 +53,10 @@ class EpsilonGreedy(BaseContextFreePolicy):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Class.\"\"\"\n- assert (\n- 0 <= self.epsilon <= 1\n- ), f\"epsilon... | Python | Apache License 2.0 | st-tech/zr-obp | replace assert with ValueError for epsilon |
641,004 | 25.12.2020 20:22:31 | -32,400 | 116753e057b90cbc431932c50a4ece5ad70f399b | docs: refine filed descriptions | [
{
"change_type": "MODIFY",
"old_path": "obd/README.md",
"new_path": "obd/README.md",
"diff": "@@ -34,7 +34,7 @@ Here is a detailed description of the fields (they are comma-separated in the CS\n- item_id: index of items as arms (index ranges from 0-80 in \"All\" campaign, 0-33 for \"Men\" campaign, ... | Python | Apache License 2.0 | st-tech/zr-obp | docs: refine filed descriptions |
641,003 | 30.12.2020 03:52:07 | -32,400 | 87eeff107cd3344667c2bb6f8de42e56318b51dd | add test epsilon greedy | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "test/policy/test_contextfree.py",
"diff": "+import pytest\n+import numpy as np\n+\n+from obp.policy.contextfree import EpsilonGreedy\n+\n+\n+def test_contextfree_base_exception():\n+\n+ with pytest.raises(ValueError):\n+ EpsilonGreedy(n_actions=... | Python | Apache License 2.0 | st-tech/zr-obp | add test epsilon greedy |
641,003 | 30.12.2020 04:14:06 | -32,400 | 510dbfd932935448c036b4da8b8742575efa7560 | replace assert with Exception | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/contextfree.py",
"new_path": "obp/policy/contextfree.py",
"diff": "@@ -198,9 +198,10 @@ class BernoulliTS(BaseContextFreePolicy):\n\"\"\"Initialize class.\"\"\"\nsuper().__post_init__()\nif self.is_zozotown_prior:\n- assert (\n- self.campaign is not... | Python | Apache License 2.0 | st-tech/zr-obp | replace assert with Exception |
641,003 | 30.12.2020 05:21:58 | -32,400 | ed065a17df3ac84cfc578a49546bc13e8cf0fae8 | add test bernoulli ts | [
{
"change_type": "MODIFY",
"old_path": "test/policy/test_contextfree.py",
"new_path": "test/policy/test_contextfree.py",
"diff": "@@ -73,6 +73,7 @@ def test_egreedy_update_params():\nreward = 1.0\npolicy.update_params(action, reward)\nassert np.array_equal(policy.action_counts, np.array([5, 3]))\n+ ... | Python | Apache License 2.0 | st-tech/zr-obp | add test bernoulli ts |
641,003 | 30.12.2020 15:26:43 | -32,400 | be7f93694641189cd4f6d866c2471e3c8c8079aa | add test policy lin epsilon | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/linear.py",
"new_path": "obp/policy/linear.py",
"diff": "@@ -49,9 +49,10 @@ class LinEpsilonGreedy(BaseContextualPolicy):\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- assert (\n- 0 <= self.epsilon <= 1\n- ), f\"epsilon must be... | Python | Apache License 2.0 | st-tech/zr-obp | add test policy lin epsilon |
641,003 | 30.12.2020 17:16:44 | -32,400 | cee30c17bdba4707af7ead12d0786e97740f4ada | add test policy lin ucb | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/linear.py",
"new_path": "obp/policy/linear.py",
"diff": "@@ -171,9 +171,10 @@ class LinUCB(BaseContextualPolicy):\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- assert (\n- 0 <= self.epsilon <= 1\n- ), f\"epsilon must be between... | Python | Apache License 2.0 | st-tech/zr-obp | add test policy lin ucb |
641,003 | 30.12.2020 17:24:02 | -32,400 | 57ec520955f640c0f64bdbf61e79ffcf1fcac714 | remove inappropriate docs argument | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/linear.py",
"new_path": "obp/policy/linear.py",
"diff": "@@ -275,9 +275,6 @@ class LinTS(BaseContextualPolicy):\nbatch_size: int, default=1\nNumber of samples used in a batch parameter update.\n- alpha_: float, default=1.\n- Prior parameter for the ... | Python | Apache License 2.0 | st-tech/zr-obp | remove inappropriate docs argument |
641,006 | 09.01.2021 20:29:01 | -32,400 | f81bbef20424c2d634204e70e2557a3e0038d0da | add test of regression models | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/conftest.py",
"new_path": "tests/ope/conftest.py",
"diff": "from typing import Set, Tuple, List\nfrom dataclasses import dataclass\n-\n+import copy\nimport numpy as np\nimport pytest\n@@ -18,7 +18,7 @@ from obp.dataset import (\n@dataclass\nclass Log... | Python | Apache License 2.0 | st-tech/zr-obp | add test of regression models |
641,003 | 10.01.2021 20:31:40 | -32,400 | ebbdce43c9fe5b9c63cba55ad5023a1a8acce110 | add test policy logistic epsilon | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/logistic.py",
"new_path": "obp/policy/logistic.py",
"diff": "@@ -50,9 +50,10 @@ class LogisticEpsilonGreedy(BaseContextualPolicy):\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- assert (\n- 0 <= self.epsilon <= 1\n- ), f\"epsilo... | Python | Apache License 2.0 | st-tech/zr-obp | add test policy logistic epsilon |
641,003 | 10.01.2021 20:37:21 | -32,400 | d14cd642a9e10b2c4b5daec6cb5bf939e21811e8 | add test policy logistic ucb and ts | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/logistic.py",
"new_path": "obp/policy/logistic.py",
"diff": "@@ -162,9 +162,10 @@ class LogisticUCB(BaseContextualPolicy):\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- assert (\n- 0 <= self.epsilon <= 1\n- ), f\"epsilon must b... | Python | Apache License 2.0 | st-tech/zr-obp | add test policy logistic ucb and ts |
641,003 | 11.01.2021 00:40:39 | -32,400 | 1ed9907e5bece8e67a62e9e6ab940d33f5f7a8b3 | add test policy offline unittest | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/base.py",
"new_path": "obp/policy/base.py",
"diff": "@@ -185,12 +185,20 @@ class BaseOfflinePolicyLearner(metaclass=ABCMeta):\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- assert self.n_actions > 1 and isinstance(\n- self.n_act... | Python | Apache License 2.0 | st-tech/zr-obp | add test policy offline unittest |
641,003 | 11.01.2021 14:43:41 | -32,400 | b4dd1a4873ccf8ebe291105b3b036e85dccd343e | add test dataset synthetic | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/synthetic.py",
"new_path": "obp/dataset/synthetic.py",
"diff": "@@ -132,16 +132,21 @@ class SyntheticBanditDataset(BaseSyntheticBanditDataset):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Class.\"\"\"\n- assert self.n_actions > 1 and isinst... | Python | Apache License 2.0 | st-tech/zr-obp | add test dataset synthetic |
641,003 | 24.01.2021 17:14:46 | -32,400 | 3aaeffaa0ba02a2dd35c09e3b5c184da9e1260db | add test_real_init | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/real.py",
"new_path": "obp/dataset/real.py",
"diff": "@@ -53,16 +53,34 @@ class OpenBanditDataset(BaseRealBanditDataset):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Open Bandit Dataset Class.\"\"\"\n- assert self.behavior_policy in [\n+ # ... | Python | Apache License 2.0 | st-tech/zr-obp | add test_real_init |
641,003 | 24.01.2021 17:18:31 | -32,400 | 89b6c67760b76b7e13696741844688e7823962f4 | fix description of algorithm | [
{
"change_type": "MODIFY",
"old_path": "test/policy/test_contextfree.py",
"new_path": "test/policy/test_contextfree.py",
"diff": "@@ -82,7 +82,7 @@ def test_egreedy_update_params():\nreward = 1.0\npolicy.update_params(action, reward)\nassert np.array_equal(policy.action_counts, np.array([5, 3]))\n- ... | Python | Apache License 2.0 | st-tech/zr-obp | fix description of algorithm |
641,003 | 24.01.2021 17:22:08 | -32,400 | fedc9fcc78ceeb315d8ebe8917f4d00d2cf41166 | add test for invalid relationship between n_actions and len_list | [
{
"change_type": "MODIFY",
"old_path": "test/policy/test_contextfree.py",
"new_path": "test/policy/test_contextfree.py",
"diff": "@@ -120,7 +120,12 @@ def test_bernoulli_ts_zozotown_prior():\ndef test_bernoulli_ts_select_action():\n- # TODO: case where n_actions < len_list\n+ # invalid relationship ... | Python | Apache License 2.0 | st-tech/zr-obp | add test for invalid relationship between n_actions and len_list |
641,003 | 24.01.2021 17:31:15 | -32,400 | f4e6cda2d1ac635d6df46d0c289a8da9e5773f76 | fix wrong specification | [
{
"change_type": "MODIFY",
"old_path": "test/policy/test_logistic.py",
"new_path": "test/policy/test_logistic.py",
"diff": "@@ -56,7 +56,7 @@ def test_logistic_epsilon_select_action_exploration():\nassert 0 < sum(selected_action)[0] < trial_num\n-def test_lin_ucb_initialize():\n+def test_logistic_uc... | Python | Apache License 2.0 | st-tech/zr-obp | fix wrong specification |
641,003 | 24.01.2021 17:37:31 | -32,400 | 1991fb162f248284d38a10b96eeb5eac6a0f0051 | add validation for alpha and lambda | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/base.py",
"new_path": "obp/policy/base.py",
"diff": "@@ -143,6 +143,16 @@ class BaseContextualPolicy(metaclass=ABCMeta):\nf\"n_actions >= len_list should hold, but n_actions is {self.n_actions} and len_list is {self.len_list}\"\n)\n+ if not isinstan... | Python | Apache License 2.0 | st-tech/zr-obp | add validation for alpha and lambda |
641,003 | 24.01.2021 17:54:20 | -32,400 | de7a8d50342b37c745933119e0d7560b22dbb726 | add validation for sample_action | [
{
"change_type": "MODIFY",
"old_path": "obp/policy/offline.py",
"new_path": "obp/policy/offline.py",
"diff": "@@ -271,9 +271,8 @@ class IPWLearner(BaseOfflinePolicyLearner):\nAction sampled by a trained classifier.\n\"\"\"\n- assert (\n- isinstance(context, np.ndarray) and context.ndim == 2\n- ), \"... | Python | Apache License 2.0 | st-tech/zr-obp | add validation for sample_action |
641,006 | 24.01.2021 18:28:58 | -32,400 | 1c7cc5d01ed63b2fb839794a84dc71e7be084b77 | fix reward scaling method of fixed_synthetic_bandit_feedback | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/conftest.py",
"new_path": "tests/ope/conftest.py",
"diff": "@@ -13,6 +13,7 @@ from obp.dataset import (\nlogistic_reward_function,\nlinear_behavior_policy,\n)\n+from obp.utils import sigmoid\n@dataclass\n@@ -94,8 +95,11 @@ def fixed_synthetic_bandit_... | Python | Apache License 2.0 | st-tech/zr-obp | fix reward scaling method of fixed_synthetic_bandit_feedback |
641,006 | 24.01.2021 18:42:49 | -32,400 | 1de0b535fc7c66369437a1d365d554d1bfc696ca | fix self-normalized tests | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_dr_estimators.py",
"new_path": "tests/ope/test_dr_estimators.py",
"diff": "@@ -89,14 +89,10 @@ def test_sndr_range_using_random_evaluation_policy(\ninput_dict[\"estimated_rewards_by_reg_model\"] = expected_reward\n# make pscore too small (to che... | Python | Apache License 2.0 | st-tech/zr-obp | fix self-normalized tests |
641,006 | 24.01.2021 18:47:07 | -32,400 | 4fd49b762374d80ede53cd122ca7771f25fb6c8c | removed unnecessary processes | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_ipw_estimators.py",
"new_path": "tests/ope/test_ipw_estimators.py",
"diff": "@@ -57,7 +57,6 @@ def test_snipw_range_using_random_evaluation_policy(\n\"\"\"\naction_dist = random_action_dist\n# prepare dm\n- ipw = InverseProbabilityWeighting()\ns... | Python | Apache License 2.0 | st-tech/zr-obp | removed unnecessary processes |
641,006 | 24.01.2021 19:03:06 | -32,400 | 2aa1e0995160f3a75a40d090f640bf921050eb9b | calculate relative-ee in our testing function | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_meta.py",
"new_path": "tests/ope/test_meta.py",
"diff": "@@ -314,19 +314,24 @@ def test_meta_summarize_off_policy_estimates(\ndef test_meta_evaluate_performance_of_estimators(\nsynthetic_bandit_feedback: BanditFeedback, random_action_dist: np.nd... | Python | Apache License 2.0 | st-tech/zr-obp | calculate relative-ee in our testing function |
641,006 | 24.01.2021 19:18:53 | -32,400 | 9bf6fe852b604b345ec2b1ea46e5a28f7fe149cd | fix the naming of variables and functions | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_all_estimators.py",
"new_path": "tests/ope/test_all_estimators.py",
"diff": "@@ -29,7 +29,7 @@ def test_fixture(\n), \"model list length of logistic evaluation policy should be the same as n_actions\"\n-def test_expected_value_of_random_evaluati... | Python | Apache License 2.0 | st-tech/zr-obp | fix the naming of variables and functions |
641,006 | 24.01.2021 19:54:56 | -32,400 | c98b0d60d1814b2306212804c9efd83c51c7dd22 | fix comment and typo | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/conftest.py",
"new_path": "tests/ope/conftest.py",
"diff": "@@ -87,7 +87,7 @@ def synthetic_bandit_feedback() -> BanditFeedback:\nreturn bandit_feedback\n-# adjust expected reward of synthetic bandit feedback\n+# make the expected reward of synthetic... | Python | Apache License 2.0 | st-tech/zr-obp | fix comment and typo |
641,006 | 24.01.2021 19:57:20 | -32,400 | 8dd5563b6ac93da8eeb689c02d7e0df14378eb49 | add random state | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_all_estimators.py",
"new_path": "tests/ope/test_all_estimators.py",
"diff": "@@ -94,7 +94,9 @@ def test_response_format_of_ope_estimators_using_random_evaluation_policy(\naction_dist=action_dist, estimated_rewards_by_reg_model=expected_reward\n)... | Python | Apache License 2.0 | st-tech/zr-obp | add random state |
641,006 | 24.01.2021 20:02:28 | -32,400 | 7eb86461a33c6011f3013b82cf2f18fa597acb40 | remove logistic evaluation policy | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/conftest.py",
"new_path": "tests/ope/conftest.py",
"diff": "-from typing import Set, Tuple, List\n-from dataclasses import dataclass\n+from typing import Set\nimport copy\nimport numpy as np\nimport pytest\nfrom sklearn.utils import check_random_stat... | Python | Apache License 2.0 | st-tech/zr-obp | remove logistic evaluation policy |
641,006 | 24.01.2021 21:18:44 | -32,400 | 5503320589f64af60ec89a5310906e40c74d20d8 | add noqa when importing enable_hist_gradient_boosting | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_regression_models.py",
"new_path": "tests/ope/test_regression_models.py",
"diff": "@@ -3,7 +3,7 @@ from pathlib import Path\nimport yaml\nimport numpy as np\n-from sklearn.experimental import enable_hist_gradient_boosting\n+from sklearn.experime... | Python | Apache License 2.0 | st-tech/zr-obp | add noqa when importing enable_hist_gradient_boosting |
641,014 | 28.01.2021 03:58:20 | -32,400 | 4203ad3823d2c09c1a5ef12e529805d48d114a69 | fix example file names | [
{
"change_type": "MODIFY",
"old_path": "examples/README.md",
"new_path": "examples/README.md",
"diff": "# Examples\n-- `examples_with_obd`: example implementations for evaluating standard off-policy estimators with the small sample Open Bandit Dataset.\n-- `examples_with_synthetic`: example implemen... | Python | Apache License 2.0 | st-tech/zr-obp | fix example file names |
641,014 | 28.01.2021 23:14:13 | -32,400 | ec14d30102322fd1cdbcd9e5352b1b43c89f013f | fix synthetic example script | [
{
"change_type": "MODIFY",
"old_path": "examples/synthetic/README.md",
"new_path": "examples/synthetic/README.md",
"diff": "@@ -14,7 +14,6 @@ In the following, we evaluate the estimation performances of\n- Self-Normalized Inverse Probability Weighting (SNIPW)\n- Doubly Robust (DR)\n- Self-Normalized... | Python | Apache License 2.0 | st-tech/zr-obp | fix synthetic example script |
641,014 | 28.01.2021 23:17:54 | -32,400 | 610d982c0ab0897737bb01c70b3f67b7abe5b523 | fix path of examples | [
{
"change_type": "MODIFY",
"old_path": "examples/quickstart/synthetic.ipynb",
"new_path": "examples/quickstart/synthetic.ipynb",
"diff": "\"- (3) Off-Policy Evaluation\\n\",\n\"- (4) Evaluation of OPE Estimators\\n\",\n\"\\n\",\n- \"Please see [examples/synthetic](../examples/synthetic) for a more s... | Python | Apache License 2.0 | st-tech/zr-obp | fix path of examples |
641,006 | 31.01.2021 16:13:28 | -32,400 | b29f150b729f574ad7faaf59bcb858156b87a102 | fix flake8 E231 | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_meta.py",
"new_path": "tests/ope/test_meta.py",
"diff": "@@ -295,7 +295,10 @@ def test_meta_summarize_off_policy_estimates(\n)\nvalue, interval = ope_.summarize_off_policy_estimates(random_action_dist)\nexpected_value = pd.DataFrame(\n- {\"ipw\"... | Python | Apache License 2.0 | st-tech/zr-obp | fix flake8 E231 |
641,003 | 31.01.2021 19:12:57 | -32,400 | 78b45b09759671b4505d361d6fedf0af7322f153 | add test multiclass | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/multiclass.py",
"new_path": "obp/dataset/multiclass.py",
"diff": "@@ -149,12 +149,13 @@ class MultiClassToBanditReduction(BaseSyntheticBanditDataset):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Class.\"\"\"\n- assert is_classifier(\n- self... | Python | Apache License 2.0 | st-tech/zr-obp | add test multiclass |
641,006 | 31.01.2021 23:16:11 | -32,400 | 653d43239f55fc716f62e7d1aec7fa1c3da11b20 | fix obp modules to test meta.py | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/meta.py",
"new_path": "obp/ope/meta.py",
"diff": "@@ -79,7 +79,7 @@ class OffPolicyEvaluation:\ndef __post_init__(self) -> None:\n\"\"\"Initialize class.\"\"\"\n- for key_ in [\"action\", \"position\", \"reward\", \"pscore\", \"context\"]:\n+ for key_ ... | Python | Apache License 2.0 | st-tech/zr-obp | fix obp modules to test meta.py |
641,005 | 31.01.2021 23:39:29 | -32,400 | 258b683b2286b8d63710a782f945e13a4e328ebc | remove eval_size parameter | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/multiclass.py",
"new_path": "obp/dataset/multiclass.py",
"diff": "@@ -217,10 +217,6 @@ class MultiClassToBanditReduction(BaseSyntheticBanditDataset):\nParameters\n-----------\n- eval_size: float or int, default=0.25\n- If float, should be between 0... | Python | Apache License 2.0 | st-tech/zr-obp | remove eval_size parameter |
641,014 | 01.02.2021 07:32:31 | -32,400 | 096b17d18afc40b2b85c31bf69b1569417bb6b22 | del switch-ipw from examples/multiclass | [
{
"change_type": "MODIFY",
"old_path": "examples/multiclass/README.md",
"new_path": "examples/multiclass/README.md",
"diff": "@@ -14,11 +14,10 @@ In the following, we evaluate the estimation performances of\n- Self-Normalized Inverse Probability Weighting (SNIPW)\n- Doubly Robust (DR)\n- Self-Normal... | Python | Apache License 2.0 | st-tech/zr-obp | del switch-ipw from examples/multiclass |
641,014 | 01.02.2021 08:36:48 | -32,400 | 2e6a7b342fcbf7754321a7b0ebfe9ecc99f35218 | add calc_ground_truth_policy_value | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/synthetic.py",
"new_path": "obp/dataset/synthetic.py",
"diff": "@@ -248,6 +248,39 @@ class SyntheticBanditDataset(BaseSyntheticBanditDataset):\npscore=pscore,\n)\n+ def calc_ground_truth_policy_value(self, expected_reward: np.ndarray, action_dist: ... | Python | Apache License 2.0 | st-tech/zr-obp | add calc_ground_truth_policy_value |
641,014 | 01.02.2021 08:37:06 | -32,400 | 2a2cc94159a4c67850c14ea90a9892d34d157877 | add tests of calc_ground_truth_policy_value | [
{
"change_type": "MODIFY",
"old_path": "tests/dataset/test_synthetic.py",
"new_path": "tests/dataset/test_synthetic.py",
"diff": "@@ -90,6 +90,62 @@ def test_synthetic_obtain_batch_bandit_feedback():\n)\n+# expected_reward, action_dist, description\n+invalid_input_of_calc_policy_value = [\n+ (\n+ np... | Python | Apache License 2.0 | st-tech/zr-obp | add tests of calc_ground_truth_policy_value |
641,014 | 02.02.2021 06:17:19 | -32,400 | 6a3656844d796c88d5cbb0893b0475c43f312954 | update quickstart obd | [
{
"change_type": "MODIFY",
"old_path": "examples/quickstart/obd.ipynb",
"new_path": "examples/quickstart/obd.ipynb",
"diff": "\"source\": [\n\"# Quickstart Example with Open Bandit Pipeline\\n\",\n\"---\\n\",\n- \"This notebook demonstrates an example of conducting OPE of Bernoulli Thompson Sampling... | Python | Apache License 2.0 | st-tech/zr-obp | update quickstart obd |
641,014 | 05.02.2021 06:16:21 | -32,400 | 002f3b480458e872eb94a54b4b51535863ad06d7 | add example data to obp | [
{
"change_type": "MODIFY",
"old_path": "MANIFEST.in",
"new_path": "MANIFEST.in",
"diff": "include *.txt\ninclude *.md\nrecursive-include obp/policy/conf *\n+recursive-include obp/dataset/obd *\ninclude LICENSE\n"
},
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setu... | Python | Apache License 2.0 | st-tech/zr-obp | add example data to obp |
641,014 | 05.02.2021 06:21:53 | -32,400 | 406eb832bac34a51037a343c1d81ac8b4d72a673 | add option to download example obd | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/real.py",
"new_path": "obp/dataset/real.py",
"diff": "@@ -34,7 +34,8 @@ class OpenBanditDataset(BaseRealBanditDataset):\nOne of the three possible campaigns considered in ZOZOTOWN, \"all\", \"men\", and \"women\".\ndata_path: Path, default=Path('./... | Python | Apache License 2.0 | st-tech/zr-obp | add option to download example obd |
641,006 | 06.02.2021 16:45:05 | -32,400 | 15ffa9b70b57b9e7e23c02f3974045beab240943 | fix default value of position argument | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/estimators.py",
"new_path": "obp/ope/estimators.py",
"diff": "@@ -67,8 +67,8 @@ class ReplayMethod(BaseOffPolicyEstimator):\nself,\nreward: np.ndarray,\naction: np.ndarray,\n- position: np.ndarray,\naction_dist: np.ndarray,\n+ position: np.ndarray,\n**... | Python | Apache License 2.0 | st-tech/zr-obp | fix default value of position argument |
641,003 | 06.02.2021 21:29:52 | -32,400 | f9ec739bbc66da6f2a7a6bb1e781f53b70c53450 | refactor base dataset class | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/base.py",
"new_path": "obp/dataset/base.py",
"diff": "from abc import ABCMeta, abstractmethod\n-class BaseRealBanditDataset(metaclass=ABCMeta):\n+class BaseBanditDataset(metaclass=ABCMeta):\n+ \"\"\"Base Class for Synthetic Bandit Dataset.\"\"\"\n+... | Python | Apache License 2.0 | st-tech/zr-obp | refactor base dataset class |
641,006 | 06.02.2021 23:00:27 | -32,400 | 992ba887ec5c3ad3caef4305164e68f9297c4f65 | fix input validation of estimators and utils | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/estimators.py",
"new_path": "obp/ope/estimators.py",
"diff": "@@ -8,7 +8,7 @@ from typing import Dict, Optional\nimport numpy as np\n-from ..utils import estimate_confidence_interval_by_bootstrap\n+from ..utils import estimate_confidence_interval_by_bo... | Python | Apache License 2.0 | st-tech/zr-obp | fix input validation of estimators and utils |
641,006 | 06.02.2021 23:01:13 | -32,400 | 1db3b59e5f6c97952c3270f613778fd95d7f976c | add validation test in test_all_estimators | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_all_estimators.py",
"new_path": "tests/ope/test_all_estimators.py",
"diff": "from typing import Set\nimport numpy as np\n+import pytest\nfrom obp import ope\nfrom obp.ope import OffPolicyEvaluation\nfrom obp.types import BanditFeedback\n+from co... | Python | Apache License 2.0 | st-tech/zr-obp | add validation test in test_all_estimators |
641,006 | 06.02.2021 23:01:29 | -32,400 | 0fee516a57e4063e1d5f4a5358d01984db6263b1 | add validation test in test_dm_estimators | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_dm_estimators.py",
"new_path": "tests/ope/test_dm_estimators.py",
"diff": "@@ -5,6 +5,55 @@ import numpy as np\nfrom obp.types import BanditFeedback\nfrom obp.ope import DirectMethod\n+from conftest import generate_action_dist\n+\n+\n+# action_d... | Python | Apache License 2.0 | st-tech/zr-obp | add validation test in test_dm_estimators |
641,006 | 06.02.2021 23:01:37 | -32,400 | 9295fbeeec5b2955b967bda8aa4734501f5bb4d6 | add validation test in test_ipw_estimators | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_ipw_estimators.py",
"new_path": "tests/ope/test_ipw_estimators.py",
"diff": "@@ -8,13 +8,184 @@ from obp.ope import (\nInverseProbabilityWeighting,\nSelfNormalizedInverseProbabilityWeighting,\n)\n-\n+from conftest import generate_action_dist\n# ... | Python | Apache License 2.0 | st-tech/zr-obp | add validation test in test_ipw_estimators |
641,006 | 06.02.2021 23:01:43 | -32,400 | 05ff8058d1212453b7510a547e2b5b9230abf2e8 | add validation test in test_dr_estimators | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_dr_estimators.py",
"new_path": "tests/ope/test_dr_estimators.py",
"diff": "@@ -13,23 +13,307 @@ from obp.ope import (\nSwitchDoublyRobust,\nSelfNormalizedDoublyRobust,\n)\n-\n+from conftest import generate_action_dist\n# prepare instances\nipw =... | Python | Apache License 2.0 | st-tech/zr-obp | add validation test in test_dr_estimators |
641,006 | 06.02.2021 23:20:09 | -32,400 | 944061da08960f6c9265504f3e41e7247f9710eb | fix variable names in test_meta | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_meta.py",
"new_path": "tests/ope/test_meta.py",
"diff": "@@ -567,7 +567,7 @@ def test_meta_summarize_off_policy_estimates(\nassert_frame_equal(interval, expected_interval), \"Invalid summarization (interval)\"\n-invalid_input_of_evaluation_perfo... | Python | Apache License 2.0 | st-tech/zr-obp | fix variable names in test_meta |
641,006 | 06.02.2021 23:33:27 | -32,400 | bd7af34d2088b586713ab7ed0d4e2f06196b305a | assert -> ValueError; utils and post init | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -62,17 +62,19 @@ class RegressionModel(BaseEstimator):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Class.\"\"\"\n- assert self.fitting_method in [\n- \"normal\",\n- \"... | Python | Apache License 2.0 | st-tech/zr-obp | assert -> ValueError; utils and post init |
641,006 | 06.02.2021 23:52:46 | -32,400 | 70bcbdde2331b24525f5c99edf9a2b9c144649e3 | add more validations in regression models | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -131,18 +131,23 @@ class RegressionModel(BaseEstimator):\nif self.len_list == 1:\nposition = np.zeros_like(action)\nelse:\n- assert (\n- isinstance(position, np.ndarray) and p... | Python | Apache License 2.0 | st-tech/zr-obp | add more validations in regression models |
641,006 | 07.02.2021 18:18:49 | -32,400 | 059b6558013c075555077419c7ba11f61f839095 | fix validaition of regression models | [
{
"change_type": "MODIFY",
"old_path": "obp/ope/regression_model.py",
"new_path": "obp/ope/regression_model.py",
"diff": "@@ -62,7 +62,10 @@ class RegressionModel(BaseEstimator):\ndef __post_init__(self) -> None:\n\"\"\"Initialize Class.\"\"\"\n- if self.fitting_method not in [\"normal\", \"iw\", \"... | Python | Apache License 2.0 | st-tech/zr-obp | fix validaition of regression models |
641,006 | 07.02.2021 18:19:01 | -32,400 | 7a94bd2dc0877e0e15e7357f0c22b52e32a7e649 | fix regression model testing | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/conftest.py",
"new_path": "tests/ope/conftest.py",
"diff": "@@ -99,3 +99,9 @@ def random_action_dist(synthetic_bandit_feedback) -> np.ndarray:\nn_rounds=synthetic_bandit_feedback[\"n_rounds\"]\n)\nreturn action_dist\n+\n+\n+def generate_action_dist(i... | Python | Apache License 2.0 | st-tech/zr-obp | fix regression model testing |
641,006 | 07.02.2021 18:30:01 | -32,400 | eee41004287d342c237dc114cc8c3a1f7db96e66 | add comment in invalid testing of regression models | [
{
"change_type": "MODIFY",
"old_path": "tests/ope/test_regression_models.py",
"new_path": "tests/ope/test_regression_models.py",
"diff": "@@ -37,7 +37,7 @@ len_list = 3\ninvalid_input_of_initializing_regression_models = [\n(\nnp.random.uniform(size=(n_actions, 8)),\n- \"a\",\n+ \"a\", #\nlen_list,\n... | Python | Apache License 2.0 | st-tech/zr-obp | add comment in invalid testing of regression models |
641,003 | 31.01.2021 17:48:16 | -32,400 | c2efd73ac7af9b0721d485213794d67c88315f93 | apply reviewed points | [
{
"change_type": "MODIFY",
"old_path": "obp/dataset/real.py",
"new_path": "obp/dataset/real.py",
"diff": "@@ -42,7 +42,7 @@ class OpenBanditDataset(BaseRealBanditDataset):\nReferences\n------------\nYuta Saito, Shunsuke Aihara, Megumi Matsutani, Yusuke Narita.\n- \"Large-scale Open Dataset, Pipeline... | Python | Apache License 2.0 | st-tech/zr-obp | apply reviewed points |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.