File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
<
10BC0
svg aria-hidden="true" focusable="false" class="octicon octicon-file-diff fgColor-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom">
pipeline.py Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 3 b294b20d ... [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 3 b294b20d ... [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 ))
You can’t perform that action at this time.
0 commit comments