Skip to content

Commit

Permalink
Merge pull request #1135 from weixuanfu/master
Browse files Browse the repository at this point in the history
Fix the logic of type checking in operator_utils
  • Loading branch information
weixuanfu committed Nov 5, 2020
2 parents 08e9db8 + 7f6a23e commit 5f3ccef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tpot/_version.py
Expand Up @@ -23,4 +23,4 @@
"""

__version__ = '0.11.6'
__version__ = '0.11.6.post1'
7 changes: 4 additions & 3 deletions tpot/operator_utils.py
Expand Up @@ -194,10 +194,11 @@ def TPOTOperatorClassFactory(opsourse, opdict, BaseClass=Operator, ArgBaseClass=
elif is_regressor(op_obj):
class_profile['root'] = True
optype = "Regressor"
if _is_transformer(op_obj):
optype = "Transformer"
if _is_selector(op_obj):
elif _is_selector(op_obj):
optype = "Selector"
elif _is_transformer(op_obj):
optype = "Transformer"


@classmethod
def op_type(cls):
Expand Down

0 comments on commit 5f3ccef

Please sign in to comment.