From 5b7f3269f3cdc2e196be7198510d5cad8df934f0 Mon Sep 17 00:00:00 2001 From: JuiP Date: Mon, 31 May 2021 22:43:59 +0530 Subject: [PATCH] Add init files and import changes due to restructuring --- estimators/ConditionalContextualBandits/__init__.py | 0 estimators/ContextualBandits/__init__.py | 0 estimators/basic-usage.py | 8 ++++---- estimators/test/__init__.py | 0 estimators/test/test_pi.py | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 estimators/ConditionalContextualBandits/__init__.py create mode 100644 estimators/ContextualBandits/__init__.py create mode 100644 estimators/test/__init__.py diff --git a/estimators/ConditionalContextualBandits/__init__.py b/estimators/ConditionalContextualBandits/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/estimators/ContextualBandits/__init__.py b/estimators/ContextualBandits/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/estimators/basic-usage.py b/estimators/basic-usage.py index 51221ac..a34df33 100644 --- a/estimators/basic-usage.py +++ b/estimators/basic-usage.py @@ -1,9 +1,9 @@ import argparse, os, gzip -import cressieread -import ips_snips -import mle +from ContextualBandits import cressieread +from ContextualBandits import ips_snips +from ContextualBandits import mle import ds_parse -import cats_utils +from ContextualBandits import cats_utils def compute_estimates(log_fp, cats_transformer=None): diff --git a/estimators/test/__init__.py b/estimators/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/estimators/test/test_pi.py b/estimators/test/test_pi.py index f9d3838..e0ac897 100644 --- a/estimators/test/test_pi.py +++ b/estimators/test/test_pi.py @@ -1,9 +1,9 @@ import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -import pseudo_inverse -import ips_snips -import cats_utils +from ConditionalContextualBandits import pseudo_inverse +from ContextualBandits import ips_snips +from ContextualBandits import cats_utils def test_single_slot_pi_equivalent_to_ips(): """PI should be equivalent to IPS when there is only a single slot"""