Skip to content

Commit 04a8374

Browse files
committed
Fix _preprocess_data import from sklearn
1 parent 288cf6e commit 04a8374

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pysindy/optimizers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import numpy as np
77
from scipy import sparse
88
from sklearn.linear_model import LinearRegression
9+
from sklearn.linear_model._base import _preprocess_data
910
from sklearn.multioutput import MultiOutputRegressor
1011
from sklearn.utils.extmath import safe_sparse_dot
1112
from sklearn.utils.validation import check_is_fitted
@@ -131,7 +132,7 @@ def fit(self, x_, y, sample_weight=None, **reduce_kws):
131132
"""
132133
x_, y = check_X_y(x_, y, accept_sparse=[], y_numeric=True, multi_output=True)
133134

134-
x, y, X_offset, y_offset, X_scale = self._preprocess_data(
135+
x, y, X_offset, y_offset, X_scale = _preprocess_data(
135136
x_,
136137
y,
137138
fit_intercept=self.fit_intercept,

0 commit comments

Comments
 (0)