Skip to content

Commit

Permalink
Update evaluation_interfaces.py (#1356)
Browse files Browse the repository at this point in the history
Added check for NoneType in is_multi_output_task
  • Loading branch information
dmitryglhf authored Jan 10, 2025
1 parent 538f1ba commit 84f4ebb
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 84f4ebb

Please sign in to comment.