File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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" ])
You can’t perform that action at this time.
0 commit comments