Skip to content

Commit

Permalink
Fix bug with test_regression_pipeline_with_data_operation_fit_predict…
Browse files Browse the repository at this point in the history
…_correct by adding check for target
  • Loading branch information
aPovidlo committed Aug 15, 2024
1 parent ebab7f2 commit c123779
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fedot/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ def reduce_mem_usage_np(arr, initial_types):
self.log.message('-- Reduce memory in features')
data.features = reduce_mem_usage_np(data.features, data.supplementary_data.col_type_ids['features'])

self.log.message('-- Reduce memory in target')
data.target = reduce_mem_usage_np(data.target, data.supplementary_data.col_type_ids['target'])
if data.target is not None:
self.log.message('-- Reduce memory in target')
data.target = reduce_mem_usage_np(data.target, data.supplementary_data.col_type_ids['target'])

return data

Expand Down

0 comments on commit c123779

Please sign in to comment.