Skip to content

Commit

Permalink
Update evaluation_interfaces.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryglhf authored Jan 9, 2025
1 parent 538f1ba commit a47ba80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fedot/core/operations/evaluation/evaluation_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def convert_to_multivariate_model(sklearn_model, train_data: InputData):


def is_multi_output_task(train_data):
target_shape = train_data.target.shape
is_multi_target = len(target_shape) > 1 and target_shape[1] > 1
return is_multi_target
if train_data.target is not None:
target_shape = train_data.target.shape
is_multi_target = len(target_shape) > 1 and target_shape[1] > 1
return is_multi_target

0 comments on commit a47ba80

Please sign in to comment.