Skip to content

Commit

Permalink
Merge pull request #1268 from perib/mate_operator_fix
Browse files Browse the repository at this point in the history
Mate operator fix
  • Loading branch information
nickotto authored Feb 23, 2024
2 parents 3fd4e9b + c6d581f commit 7bc629a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tpot/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def check_pipeline(self, *args, **kwargs):
# returns tuple of (ind1, ind2)

expr_tuple = expr if isinstance(expr, tuple) else (expr,)
if func.__name__ == "_mate_operator":
expr_tuple = expr_tuple[0:2]
for expr_test in expr_tuple:
pipeline_code = generate_pipeline_code(
expr_to_tree(expr_test, self._pset),
Expand Down

0 comments on commit 7bc629a

Please sign in to comment.