Skip to content

Commit 1bfa9a5

Browse files
committed
add scale and shift to tests
1 parent b95428d commit 1bfa9a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/test_adapters/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def adapter():
2020
.constrain("p2", lower=0)
2121
.apply(include="p2", forward="exp", inverse="log")
2222
.apply(include="p2", forward="log1p")
23+
.scale("x", by=2)
24+
.shift("x", by=2)
2325
.standardize(exclude=["t1", "t2", "o1"])
2426
.drop("d1")
2527
.one_hot("o1", 10)

tests/test_adapters/test_adapters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,6 @@ def test_simple_transforms(random_data):
108108
assert np.array_equal(inverse["p2"], random_data["p2"])
109109
assert np.array_equal(inverse["t2"], random_data["t2"])
110110
assert np.array_equal(inverse["t1"], random_data["t1"])
111-
# numerical inaccuries prevent np.array_equal to work here
111+
112+
# numerical inaccuracies prevent np.array_equal to work here
112113
assert np.allclose(inverse["p1"], random_data["p1"])

0 commit comments

Comments
 (0)