Skip to content

Commit

Permalink
Hotfix for bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aPovidlo committed Jul 30, 2024
1 parent 81acea3 commit f684be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fedot/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def _prepare_obligatory_unimodal(self, data: InputData, source_name: str,
if is_fit_stage:
self._find_features_lacking_nans(data, source_name)
self._take_only_correct_features(data, source_name)

if is_fit_stage:
data = self._drop_rows_with_nan_in_target(data)

Expand All @@ -220,6 +221,7 @@ def _prepare_obligatory_unimodal(self, data: InputData, source_name: str,
data.target = self._apply_target_encoding(data, source_name)
else:
self.types_correctors[source_name].convert_data_for_predict(data)
data.target = self._apply_target_encoding(data, source_name)

# TODO andreygetmanov target encoding must be obligatory for all data types
if data_type_is_text(data):
Expand Down

0 comments on commit f684be4

Please sign in to comment.