Skip to content

Commit 58f4d78

Browse files
committed
2 parents 3f21d37 + bbe3820 commit 58f4d78

File tree

5 files changed

+13
-31
lines changed

5 files changed

+13
-31
lines changed

build_tools/travis/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ if [[ "$DISTRIB" == "conda" ]]; then
2828
MINICONDA_PATH=/home/travis/miniconda
2929
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
3030
export PATH=$MINICONDA_PATH/bin:$PATH
31-
conda install --yes conda=4.6
31+
conda config --set always_yes yes --set changeps1 no
32+
conda install conda=4.6
33+
conda update -q conda
34+
conda info -a
3235

3336
# Configure the conda environment and put it in the path using the
3437
# provided versions

imblearn/metrics/_classification.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ def specificity_score(y_true,
368368
sample_weight=None):
369369
"""Compute the specificity
370370
371-
The specificity is the ratio ``tp / (tp + fn)`` where ``tp`` is the number
372-
of true positives and ``fn`` the number of false negatives. The specificity
373-
is intuitively the ability of the classifier to find all the positive
374-
samples.
371+
The specificity is the ratio ``tn / (tn + fp)`` where ``tn`` is the number
372+
of true negatives and ``fn`` the number of false negatives. The specificity
373+
quantifies the ability to avoid false positives_[1].
375374
376375
The best value is 1 and the worst value is 0.
377376

imblearn/over_sampling/_smote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ def _sample(self, X, y):
12901290
if not valid_clusters:
12911291
raise RuntimeError(
12921292
"No clusters found with sufficient samples of "
1293-
"class {}. Try lowering the cluster_balance_threshold or "
1293+
"class {}. Try lowering the cluster_balance_threshold "
12941294
"or increasing the number of "
12951295
"clusters.".format(class_sample))
12961296

imblearn/utils/_show_versions.py

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,51 +59,38 @@ def show_versions(github=False):
5959
If true, wrap system info with GitHub markup.
6060
"""
6161

62-
from sklearn.utils._show_versions import (
63-
_get_sys_info,
64-
_get_blas_info,
65-
)
62+
from sklearn.utils._show_versions import _get_sys_info
6663

6764
_sys_info = _get_sys_info()
68-
_blas_info = _get_blas_info()
6965
_deps_info = _get_deps_info()
7066
_github_markup = (
7167
"<details>"
72-
"<summary>System, BLAS, and Dependencies</summary>\n\n"
68+
"<summary>System, Dependency Information</summary>\n\n"
7369
"**System Information**\n\n"
7470
"{0}\n"
75-
"**BLAS**\n\n"
76-
"{1}\n"
7771
"**Python Dependencies**\n\n"
78-
"{2}\n"
72+
"{1}\n"
7973
"</details>"
8074
)
8175

8276
if github:
8377

8478
_sys_markup = ""
85-
_blas_markup = ""
8679
_deps_markup = ""
8780

8881
for k, stat in _sys_info.items():
8982
_sys_markup += "* {k:<10}: `{stat}`\n".format(k=k, stat=stat)
90-
for k, stat in _blas_info.items():
91-
_blas_markup += "* {k:<10}: `{stat}`\n".format(k=k, stat=stat)
9283
for k, stat in _deps_info.items():
9384
_deps_markup += "* {k:<10}: `{stat}`\n".format(k=k, stat=stat)
9485

95-
print(_github_markup.format(_sys_markup, _blas_markup, _deps_markup))
86+
print(_github_markup.format(_sys_markup, _deps_markup))
9687

9788
else:
9889

9990
print("\nSystem:")
10091
for k, stat in _sys_info.items():
10192
print("{k:>11}: {stat}".format(k=k, stat=stat))
10293

103-
print("\nBLAS:")
104-
for k, stat in _blas_info.items():
105-
print("{k:>11}: {stat}".format(k=k, stat=stat))
106-
10794
print("\nPython dependencies:")
10895
for k, stat in _deps_info.items():
10996
print("{k:>11}: {stat}".format(k=k, stat=stat))

imblearn/utils/tests/test_show_versions.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ def test_show_versions_default(capsys):
2424
assert "python" in out
2525
assert "executable" in out
2626
assert "machine" in out
27-
assert "macros" in out
28-
assert "lib_dirs" in out
29-
assert "cblas_libs" in out
3027
assert "pip" in out
3128
assert "setuptools" in out
3229
assert "imblearn" in out
@@ -42,15 +39,11 @@ def test_show_versions_default(capsys):
4239
def test_show_versions_github(capsys):
4340
show_versions(github=True)
4441
out, err = capsys.readouterr()
45-
assert "<details><summary>System, BLAS, and Dependencies</summary>" in out
42+
assert "<details><summary>System, Dependency Information</summary>" in out
4643
assert "**System Information**" in out
4744
assert "* python" in out
4845
assert "* executable" in out
4946
assert "* machine" in out
50-
assert "**BLAS**" in out
51-
assert "* macros" in out
52-
assert "* lib_dirs" in out
53-
assert "* cblas_libs" in out
5447
assert "**Python Dependencies**" in out
5548
assert "* pip" in out
5649
assert "* setuptools" in out

0 commit comments

Comments
 (0)