File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ Dataset loading utilities
6
6
7
7
.. currentmodule :: imblearn.datasets
8
8
9
- The `` imblearn.datasets `` package is complementing the `` sklearn.datasets ``
10
- package. The package provides both: (i) a set of imbalanced datasets to perform
11
- systematic benchmark and (ii) a utility to create an imbalanced dataset from an
12
- original balanced dataset.
9
+ The :mod: ` imblearn.datasets ` package is complementing the
10
+ :mod: ` sklearn.datasets ` package. The package provides both: (i) a set of
11
+ imbalanced datasets to perform systematic benchmark and (ii) a utility to
12
+ create an imbalanced dataset from an original balanced dataset.
13
13
14
14
.. _zenodo :
15
15
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ will generate balanced mini-batches.
69
69
TensorFlow generator
70
70
~~~~~~~~~~~~~~~~~~~~
71
71
72
- The :func: `imblearn.tensorflow.balanced_batch_generator ` allow to generate
72
+ The :func: `~ imblearn.tensorflow.balanced_batch_generator ` allow to generate
73
73
balanced mini-batches using an imbalanced-learn sampler which returns indices::
74
74
75
75
>>> X = X.astype(np.float32)
@@ -143,8 +143,9 @@ define a logistic regression model::
143
143
>>> model.compile(optimizer='sgd', loss='categorical_crossentropy',
144
144
... metrics=['accuracy'])
145
145
146
- :func: `imblearn.keras.balanced_batch_generator ` creates a balanced mini-batches
147
- generator with the associated number of mini-batches which will be generated::
146
+ :func: `~imblearn.keras.balanced_batch_generator ` creates a balanced
147
+ mini-batches generator with the associated number of mini-batches which will be
148
+ generated::
148
149
149
150
>>> from imblearn.keras import balanced_batch_generator
150
151
>>> training_generator, steps_per_epoch = balanced_batch_generator(
Original file line number Diff line number Diff line change 3
3
Create an imbalanced dataset
4
4
============================
5
5
6
- An illustration of the :func:`imblearn.datasets.make_imbalance` function to
6
+ An illustration of the :func:`~ imblearn.datasets.make_imbalance` function to
7
7
create an imbalanced dataset from a balanced dataset. We show the ability of
8
- :func:`imblearn.datasets.make_imbalance` of dealing with Pandas DataFrame.
8
+ :func:`~ imblearn.datasets.make_imbalance` of dealing with Pandas DataFrame.
9
9
10
10
"""
11
11
You can’t perform that action at this time.
0 commit comments