Skip to content

Commit d915779

Browse files
committed
iter
1 parent 8a593b9 commit d915779

File tree

10 files changed

+59
-58
lines changed

10 files changed

+59
-58
lines changed

doc/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import os
1616
import sys
17+
from datetime import datetime
1718

1819
# If extensions (or modules to document with autodoc) are in another directory,
1920
# add these directories to sys.path here. If the directory is relative to the
@@ -52,7 +53,7 @@
5253

5354
# General information about the project.
5455
project = "imbalanced-learn"
55-
copyright = "2014-2020, The imbalanced-learn developers"
56+
copyright = f"2014-{datetime.now().year}, The imbalanced-learn developers"
5657

5758
# The version info for the project you're documenting, acts as replacement for
5859
# |version| and |release|, also used in various other places throughout the
@@ -202,7 +203,7 @@
202203
"index",
203204
"imbalanced-learn.tex",
204205
"imbalanced-learn Documentation",
205-
"G. Lemaitre, F. Nogueira, D. Oliveira, C. Aridas",
206+
"The imbalanced-learn developers",
206207
"manual",
207208
),
208209
]
@@ -220,7 +221,7 @@
220221
"index",
221222
"imbalanced-learn",
222223
"imbalanced-learn Documentation",
223-
["G. Lemaitre, F. Nogueira, D. Oliveira, C. Aridas"],
224+
["The imbalanced-learn developers"],
224225
1,
225226
)
226227
]
@@ -238,7 +239,7 @@
238239
"index",
239240
"imbalanced-learn",
240241
"imbalanced-learn Documentation",
241-
"G. Lemaitre, F. Nogueira, D. Oliveira, C. Aridas",
242+
"The imbalanced-learn developerss",
242243
"imbalanced-learn",
243244
"Toolbox for imbalanced dataset in machine learning.",
244245
"Miscellaneous",
@@ -253,6 +254,8 @@
253254
# through a change in sphinx basic.css except rtd_theme does not use basic.css.
254255
# In an ideal world, this would get fixed in this PR:
255256
# https://github.com/readthedocs/sphinx_rtd_theme/pull/747/files
257+
258+
256259
def setup(app):
257260
app.add_js_file("js/copybutton.js")
258261
app.add_css_file("basic.css")

doc/references/combine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Combination of over- and under-sampling methods
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
10+
.. currentmodule:: imblearn.combine
1111

1212
.. autosummary::
1313
:toctree: generated/
1414
:template: class.rst
1515

16-
combine.SMOTEENN
17-
combine.SMOTETomek
16+
SMOTEENN
17+
SMOTETomek

doc/references/datasets.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Datasets
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
10+
.. currentmodule:: imblearn.datasets
1111

1212
.. autosummary::
1313
:toctree: generated/
1414
:template: function.rst
1515

16-
datasets.make_imbalance
17-
datasets.fetch_datasets
16+
make_imbalance
17+
fetch_datasets

doc/references/ensemble.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Ensemble methods
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
10+
.. currentmodule:: imblearn.ensemble
1111

1212
Boosting algorithms
1313
-------------------
@@ -16,8 +16,8 @@ Boosting algorithms
1616
:toctree: generated/
1717
:template: class.rst
1818

19-
ensemble.EasyEnsembleClassifier
20-
ensemble.RUSBoostClassifier
19+
EasyEnsembleClassifier
20+
RUSBoostClassifier
2121

2222
Bagging algorithms
2323
------------------
@@ -26,5 +26,5 @@ Bagging algorithms
2626
:toctree: generated/
2727
:template: class.rst
2828

29-
ensemble.BalancedBaggingClassifier
30-
ensemble.BalancedRandomForestClassifier
29+
BalancedBaggingClassifier
30+
BalancedRandomForestClassifier

doc/references/metrics.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
11-
1210
Classification metrics
1311
----------------------
1412
See the :ref:`metrics` section of the user guide for further details.
1513

14+
.. currentmodule:: imblearn.metrics
15+
1616
.. autosummary::
1717
:toctree: generated/
1818
:template: function.rst
1919

20-
metrics.classification_report_imbalanced
21-
metrics.sensitivity_specificity_support
22-
metrics.sensitivity_score
23-
metrics.specificity_score
24-
metrics.geometric_mean_score
25-
metrics.macro_averaged_mean_absolute_error
26-
metrics.make_index_balanced_accuracy
20+
classification_report_imbalanced
21+
sensitivity_specificity_support
22+
sensitivity_score
23+
specificity_score
24+
geometric_mean_score
25+
macro_averaged_mean_absolute_error
26+
make_index_balanced_accuracy
2727

2828
Pairwise metrics
2929
----------------
@@ -33,10 +33,10 @@ See the :ref:`pairwise_metrics` section of the user guide for further details.
3333
:no-members:
3434
:no-inherited-members:
3535

36-
.. currentmodule:: imblearn
36+
.. currentmodule:: imblearn.metrics.pairwise
3737

3838
.. autosummary::
3939
:toctree: generated/
4040
:template: class.rst
4141

42-
metrics.pairwise.ValueDifferenceMetric
42+
ValueDifferenceMetric

doc/references/miscellaneous.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ Imbalance-learn provides some fast-prototyping tools.
1212
:template: class.rst
1313

1414
FunctionSampler
15-
16-
.. _pipeline_ref:

doc/references/over_sampling.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Over-sampling methods
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
10+
.. currentmodule:: imblearn.over_sampling
1111

1212
Basic over-sampling
1313
-------------------
@@ -16,7 +16,7 @@ Basic over-sampling
1616
:toctree: generated/
1717
:template: class.rst
1818

19-
over_sampling.RandomOverSampler
19+
RandomOverSampler
2020

2121
SMOTE algorithms
2222
----------------
@@ -25,9 +25,9 @@ SMOTE algorithms
2525
:toctree: generated/
2626
:template: class.rst
2727

28-
over_sampling.SMOTE
29-
over_sampling.SMOTENC
30-
over_sampling.ADASYN
31-
over_sampling.BorderlineSMOTE
32-
over_sampling.KMeansSMOTE
33-
over_sampling.SVMSMOTE
28+
SMOTE
29+
SMOTENC
30+
ADASYN
31+
BorderlineSMOTE
32+
KMeansSMOTE
33+
SVMSMOTE

doc/references/pipeline.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1+
.. _pipeline_ref:
2+
13
Pipeline
24
========
35

46
.. automodule:: imblearn.pipeline
57
:no-members:
68
:no-inherited-members:
79

8-
.. currentmodule:: imblearn
10+
.. currentmodule:: imblearn.pipeline
911

1012
.. autosummary::
1113
:toctree: generated/
1214
:template: class.rst
1315

14-
pipeline.Pipeline
16+
Pipeline
1517

1618
.. autosummary::
1719
:toctree: generated/
1820
:template: function.rst
1921

20-
pipeline.make_pipeline
22+
make_pipeline

doc/references/under_sampling.rst

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,20 @@ Under-sampling methods
77
:no-members:
88
:no-inherited-members:
99

10-
.. currentmodule:: imblearn
11-
1210
Prototype generation
1311
--------------------
1412

1513
.. automodule:: imblearn.under_sampling._prototype_generation
1614
:no-members:
1715
:no-inherited-members:
1816

19-
.. currentmodule:: imblearn
17+
.. currentmodule:: imblearn.under_sampling
2018

2119
.. autosummary::
2220
:toctree: generated/
2321
:template: class.rst
2422

25-
under_sampling.ClusterCentroids
23+
ClusterCentroids
2624

2725
Prototype selection
2826
-------------------
@@ -31,19 +29,19 @@ Prototype selection
3129
:no-members:
3230
:no-inherited-members:
3331

34-
.. currentmodule:: imblearn
32+
.. currentmodule:: imblearn.under_sampling
3533

3634
.. autosummary::
3735
:toctree: generated/
3836
:template: class.rst
3937

40-
under_sampling.CondensedNearestNeighbour
41-
under_sampling.EditedNearestNeighbours
42-
under_sampling.RepeatedEditedNearestNeighbours
43-
under_sampling.AllKNN
44-
under_sampling.InstanceHardnessThreshold
45-
under_sampling.NearMiss
46-
under_sampling.NeighbourhoodCleaningRule
47-
under_sampling.OneSidedSelection
48-
under_sampling.RandomUnderSampler
49-
under_sampling.TomekLinks
38+
CondensedNearestNeighbour
39+
EditedNearestNeighbours
40+
RepeatedEditedNearestNeighbours
41+
AllKNN
42+
InstanceHardnessThreshold
43+
NearMiss
44+
NeighbourhoodCleaningRule
45+
OneSidedSelection
46+
RandomUnderSampler
47+
TomekLinks

doc/references/utils.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Utilities
55
:no-members:
66
:no-inherited-members:
77

8-
.. currentmodule:: imblearn
8+
.. currentmodule:: imblearn.utils
99

1010
.. autosummary::
1111
:toctree: generated/
1212
:template: function.rst
1313

14-
utils.estimator_checks.parametrize_with_checks
15-
utils.check_neighbors_object
16-
utils.check_sampling_strategy
14+
estimator_checks.parametrize_with_checks
15+
check_neighbors_object
16+
check_sampling_strategy

0 commit comments

Comments
 (0)