@@ -38,17 +38,19 @@ class RandomOverSampler(BaseOverSampler):
3838 {random_state}
3939
4040 smoothed_bootstrap : bool, default=False
41- Whether or not to generate smoothed bootstrap samples.
41+ Whether or not to generate smoothed bootstrap samples. When this option
42+ is triggered, be aware that the data to be resampled needs to be
43+ numerical data since a Gaussian perturbation will be generated and
44+ added to the bootstrap.
4245
4346 .. versionadded:: 0.7
4447
4548 shrinkage : float or dict, default=1.0
46- Factor used to shrink the covariance matrix used to generate the
47- smoothed bootstrap. If a float is given, the same factor is applied to
48- generate the bootstrap samples for the classes provided in
49- `sampling_strategy`. If a dictionary is given, different factors will
50- be used to generate the bootstrap samples. The key of the dictionary
51- corresponds to the class and the value to the shrinkage factor.
49+ Factor to shrink the covariance matrix used to generate the
50+ smoothed bootstrap. A factor could be shared by all classes by
51+ providing a floating number or different for each class over-sampled
52+ by providing a dictionary where the key are the class targeted and the
53+ value is the shrinkage factor.
5254
5355 .. versionadded:: 0.7
5456
@@ -86,7 +88,7 @@ class RandomOverSampler(BaseOverSampler):
8688 Supports heterogeneous data as object array containing string and numeric
8789 data.
8890
89- When generating smoothed bootstrap, this method is also known as Random
91+ When generating a smoothed bootstrap, this method is also known as Random
9092 Over-Sampling Examples (ROSE) [1]_.
9193
9294 .. warning::
0 commit comments