Skip to content

Commit 5b7f326

Browse files
committed
Add init files and import changes due to restructuring
1 parent 4fcc00c commit 5b7f326

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

estimators/ConditionalContextualBandits/__init__.py

Whitespace-only changes.

estimators/ContextualBandits/__init__.py

Whitespace-only changes.

estimators/basic-usage.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import argparse, os, gzip
2-
import cressieread
3-
import ips_snips
4-
import mle
2+
from ContextualBandits import cressieread
3+
from ContextualBandits import ips_snips
4+
from ContextualBandits import mle
55
import ds_parse
6-
import cats_utils
6+
from ContextualBandits import cats_utils
77

88

99
def compute_estimates(log_fp, cats_transformer=None):

estimators/test/__init__.py

Whitespace-only changes.

estimators/test/test_pi.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os, sys
22
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
33

4-
import pseudo_inverse
5-
import ips_snips
6-
import cats_utils
4+
from ConditionalContextualBandits import pseudo_inverse
5+
from ContextualBandits import ips_snips
6+
from ContextualBandits import cats_utils
77

88
def test_single_slot_pi_equivalent_to_ips():
99
"""PI should be equivalent to IPS when there is only a single slot"""

0 commit comments

Comments
 (0)