Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.

Commit be40ccc

Browse files
committed
chore: parallelize oversampling function
1 parent e209e3f commit be40ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pt_datasets/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def oversample_dataset(
300300
The dataset that consists of the
301301
oversampled minority class with other classes.
302302
"""
303-
oversampler = SMOTE(random_state=seed)
303+
oversampler = SMOTE(random_state=seed, n_jobs=-1)
304304
if len(features.shape) > 3:
305305
input_shape = features.shape
306306
if len(features.shape) > 2:

0 commit comments

Comments
 (0)