8000 Back to the original branch because I had modified it unintentionally · scikit-learn/scikit-learn@4046912 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4046912

Browse files
Back to the original branch because I had modified it unintentionally
1 parent 02d4f2d commit 4046912

File tree

1 file changed

+6
-0
lines changed
  • sklearn
    • pipeline.py

1 file changed

+6
-0
lines changed

sklearn/pipeline.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def _validate_steps(self):
201201
for t in transformers:
202202
if t is None or t == "passthrough":
203203
continue
204+
<<<<<<< HEAD
204205
<<<<<<< HEAD
205206
if (not hasattr(t, "fit_transform") and
206207
(not hasattr(t, "fit") and hasattr(t, "transform"))):
@@ -210,6 +211,8 @@ def _validate_steps(self):
210211
"'passthrough'. '%s' (type %s) doesn't"
211212
% (t, type(t)))
212213
=======
214+
=======
215+
>>>>>>> parent of 3b294b20d... [fix]allow-when-only-fit-transform
213216
if not (hasattr(t, "fit") or hasattr(t, "fit_transform")) or not hasattr(
214217
t, "transform"
215218
):
@@ -228,11 +231,14 @@ def _validate_steps(self):
228231
and not hasattr(estimator, "fit")
229232
):
230233
raise TypeError(
234+
<<<<<<< HEAD
231235
<<<<<<< HEAD
232236
"Last step of Pipeline should implement fit, "
233237
"fit_transform or be the string 'passthrough'. "
234238
"'%s' (type %s) doesn't" % (estimator, type(estimator)))
235239
=======
240+
=======
241+
>>>>>>> parent of 3b294b20d... [fix]allow-when-only-fit-transform
236242
"Last step of Pipeline should implement fit "
237243
"or be the string 'passthrough'. "
238244
"'%s' (type %s) doesn't" % (estimator, type(estimator))

0 commit comments

Comments
 (0)
0