Skip to content

Commit 7bc8f04

Browse files
replacing standard_scaler_df with sklearn_config
1 parent bb68399 commit 7bc8f04

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

pymc_experimental/preprocessing/__init__.py

Whitespace-only changes.

pymc_experimental/preprocessing/standard_scaler.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

pymc_experimental/tests/test_linearmodel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
1516
import hashlib
1617
import sys
1718
import tempfile
@@ -22,13 +23,14 @@
2223
import xarray as xr
2324

2425
from pymc_experimental.linearmodel import LinearModel
25-
from pymc_experimental.preprocessing.standard_scaler import StandardScalerDF
2626

2727
try:
28+
from sklearn import set_config
2829
from sklearn.compose import TransformedTargetRegressor
2930
from sklearn.pipeline import Pipeline
3031
from sklearn.preprocessing import StandardScaler
3132

33+
set_config(transform_output="pandas")
3234
sklearn_available = True
3335
except ImportError:
3436
sklearn_available = False
@@ -166,7 +168,7 @@ def test_pipeline_integration(toy_X, toy_y):
166168
}
167169
model = Pipeline(
168170
[
169-
("input_scaling", StandardScalerDF()),
171+
("input_scaling", StandardScaler()),
170172
(
171173
"linear_model",
172174
TransformedTargetRegressor(LinearModel(model_config), transformer=StandardScaler()),

0 commit comments

Comments
 (0)