Skip to content

Commit

Permalink
parallel mode add to ReccurenceExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
v1docq committed Aug 21, 2023
1 parent 634d7dc commit fb88e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedot_ind/core/models/recurrence/RecurrenceExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def generate_vector_from_ts(self, ts_frame: pd.DataFrame) -> pd.DataFrame:
"""

parallel = Parallel(n_jobs=self.n_processes, verbose=0, pre_dispatch="2*n_jobs")
components_and_vectors = parallel(delayed(self.generate_features_from_ts)(sample) for sample in ts_frame.value)
components_and_vectors = parallel(delayed(self._ts_chunk_function)(component) for component in ts_frame)
if self.image_mode:
components_and_vectors = np.asarray(components_and_vectors)
components_and_vectors = components_and_vectors[:, np.newaxis, :, :]
Expand Down

0 comments on commit fb88e99

Please sign in to comment.