@@ -40,7 +40,7 @@ def __init__(
4040 sampling_strategy = "auto" ,
4141 random_state = None ,
4242 k_neighbors = 5 ,
43- n_jobs = 1 ,
43+ n_jobs = None ,
4444 ):
4545 super ().__init__ (sampling_strategy = sampling_strategy )
4646 self .random_state = random_state
@@ -252,8 +252,12 @@ class BorderlineSMOTE(BaseSMOTE):
252252 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
253253 find the k_neighbors.
254254
255- n_jobs : int, optional (default=1)
256- The number of threads to open if possible.
255+ n_jobs : int or None, optional (default=None)
256+ Number of CPU cores used during the cross-validation loop.
257+ ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
258+ ``-1`` means using all processors. See
259+ `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
260+ for more details.
257261
258262 m_neighbors : int or object, optional (default=10)
259263 If int, number of nearest neighbours to use to determine if a minority
@@ -316,7 +320,7 @@ def __init__(
316320 sampling_strategy = "auto" ,
317321 random_state = None ,
318322 k_neighbors = 5 ,
319- n_jobs = 1 ,
323+ n_jobs = None ,
320324 m_neighbors = 10 ,
321325 kind = "borderline-1" ,
322326 ):
@@ -446,8 +450,12 @@ class SVMSMOTE(BaseSMOTE):
446450 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
447451 find the k_neighbors.
448452
449- n_jobs : int, optional (default=1)
450- The number of threads to open if possible.
453+ n_jobs : int or None, optional (default=None)
454+ Number of CPU cores used during the cross-validation loop.
455+ ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
456+ ``-1`` means using all processors. See
457+ `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
458+ for more details.
451459
452460 m_neighbors : int or object, optional (default=10)
453461 If int, number of nearest neighbours to use to determine if a minority
@@ -512,7 +520,7 @@ def __init__(
512520 sampling_strategy = "auto" ,
513521 random_state = None ,
514522 k_neighbors = 5 ,
515- n_jobs = 1 ,
523+ n_jobs = None ,
516524 m_neighbors = 10 ,
517525 svm_estimator = None ,
518526 out_step = 0.5 ,
@@ -661,8 +669,12 @@ class SMOTE(BaseSMOTE):
661669 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
662670 find the k_neighbors.
663671
664- n_jobs : int, optional (default=1)
665- The number of threads to open if possible.
672+ n_jobs : int or None, optional (default=None)
673+ Number of CPU cores used during the cross-validation loop.
674+ ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
675+ ``-1`` means using all processors. See
676+ `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
677+ for more details.
666678
667679 Notes
668680 -----
@@ -711,7 +723,7 @@ def __init__(
711723 sampling_strategy = "auto" ,
712724 random_state = None ,
713725 k_neighbors = 5 ,
714- n_jobs = 1 ,
726+ n_jobs = None ,
715727 ):
716728 super ().__init__ (
717729 sampling_strategy = sampling_strategy ,
@@ -822,8 +834,12 @@ class SMOTENC(SMOTE):
822834 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
823835 find the k_neighbors.
824836
825- n_jobs : int, optional (default=1)
826- The number of threads to open if possible.
837+ n_jobs : int or None, optional (default=None)
838+ Number of CPU cores used during the cross-validation loop.
839+ ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
840+ ``-1`` means using all processors. See
841+ `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
842+ for more details.
827843
828844 Notes
829845 -----
@@ -881,7 +897,7 @@ def __init__(
881897 sampling_strategy = "auto" ,
882898 random_state = None ,
883899 k_neighbors = 5 ,
884- n_jobs = 1 ,
900+ n_jobs = None ,
885901 ):
886902 super ().__init__ (
887903 sampling_strategy = sampling_strategy ,
@@ -1068,8 +1084,12 @@ class KMeansSMOTE(BaseSMOTE):
10681084 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
10691085 find the k_neighbors.
10701086
1071- n_jobs : int, optional (default=1)
1072- The number of threads to open if possible.
1087+ n_jobs : int or None, optional (default=None)
1088+ Number of CPU cores used during the cross-validation loop.
1089+ ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
1090+ ``-1`` means using all processors. See
1091+ `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
1092+ for more details.
10731093
10741094 kmeans_estimator : int or object, optional (default=MiniBatchKMeans())
10751095 A KMeans instance or the number of clusters to be used. By default,
@@ -1134,7 +1154,7 @@ def __init__(
11341154 sampling_strategy = "auto" ,
11351155 random_state = None ,
11361156 k_neighbors = 2 ,
1137- n_jobs = 1 ,
1157+ n_jobs = None ,
11381158 kmeans_estimator = None ,
11391159 cluster_balance_threshold = "auto" ,
11401160 density_exponent = "auto" ,
0 commit comments