Skip to content

Commit

Permalink
DOC remove double line breaks (scikit-learn-contrib#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopfonseca committed Dec 20, 2021
1 parent 2e6a2d7 commit b8907f6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions imblearn/over_sampling/_smote/geometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,9 @@ def _make_geometric_sample(
random_state=_random_state_docstring,
)
class GeometricSMOTE(BaseOverSampler):
"""Class to to perform over-sampling using Geometric SMOTE.
This algorithm is an implementation of Geometric SMOTE, a geometrically
enhanced drop-in replacement for SMOTE as presented in [1]_.
Read more in the :ref:`User Guide <user_guide>`.
"""Class to to perform over-sampling using Geometric SMOTE. This algorithm is an
implementation of Geometric SMOTE, a geometrically enhanced drop-in replacement
for SMOTE as presented in [1]_. Read more in the :ref:`User Guide <user_guide>`.
Parameters
----------
Expand Down Expand Up @@ -123,7 +120,6 @@ class GeometricSMOTE(BaseOverSampler):
Attributes
----------
sampling_strategy_ : dict
Dictionary containing the information to sample the dataset. The keys
corresponds to the class labels from which to sample and the values
Expand Down Expand Up @@ -157,7 +153,6 @@ class GeometricSMOTE(BaseOverSampler):
References
----------
.. [1] G. Douzas, F. Bacao, "Geometric SMOTE:
a geometrically enhanced drop-in replacement for SMOTE",
Information Sciences, vol. 501, pp. 118-135, 2019.
Expand All @@ -168,7 +163,6 @@ class GeometricSMOTE(BaseOverSampler):
Examples
--------
>>> from collections import Counter
>>> from sklearn.datasets import make_classification
>>> from imblearn.over_sampling import \
Expand All @@ -182,7 +176,6 @@ class GeometricSMOTE(BaseOverSampler):
>>> X_res, y_res = gsmote.fit_resample(X, y)
>>> print('Resampled dataset shape %s' % Counter(y_res))
Resampled dataset shape Counter({{0: 900, 1: 900}})
"""

def __init__(
Expand Down

0 comments on commit b8907f6

Please sign in to comment.