Skip to content

Commit

Permalink
Automated autopep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 20, 2024
1 parent 5a7cd7a commit 25cbe7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fedot/api/api_utils/predefined_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def __init__(self, predefined_model: Union[str, Pipeline], data: InputData, log:
self.log = log
self.pipeline = self._get_pipeline(use_input_preprocessing, api_preprocessor)

def _get_pipeline(self, use_input_preprocessing: bool = True, api_preprocessor: BasePreprocessor = None) -> Pipeline:
def _get_pipeline(self, use_input_preprocessing: bool = True,
api_preprocessor: BasePreprocessor = None) -> Pipeline:
if isinstance(self.predefined_model, Pipeline):
pipelines = self.predefined_model
elif self.predefined_model == 'auto':
Expand Down
1 change: 1 addition & 0 deletions fedot/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ def update_indices_for_time_series(self, test_data: Union[InputData, MultiModalD
last_id = len(input_data.idx)
input_data.idx = np.arange(last_id, last_id + input_data.task.task_params.forecast_length)
return test_data

@copy_doc(BasePreprocessor.reduce_memory_size)
def reduce_memory_size(self, data: InputData) -> InputData:
def reduce_mem_usage_np(arr, initial_types):
Expand Down

0 comments on commit 25cbe7a

Please sign in to comment.