8000 0.22.1 release branch by ogrisel · Pull Request #15998 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

0.22.1 release branch #15998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 85 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
3ad0016
DOC fixed default values in dbscan (#15753)
cgsavard Dec 2, 2019
577e92f
DOC fix incorrect branch reference in contributing doc (#15779)
cgsavard Dec 4, 2019
1b4bb1c
DOC relabel Feature -> Efficiency in change log (#15770)
jnothman Dec 4, 2019
b082499
DOC fixed Birch default value (#15780)
cgsavard Dec 4, 2019
4be82f3
STY Minior change on code padding in website theme (#15768)
thomasjpfan Dec 4, 2019
2b0463c
DOC Fix yticklabels order in permutation importances example (#15799)
ogrisel Dec 5, 2019
8000 628d96f
STY Update wrapper width (#15793)
thomasjpfan Dec 5, 2019
7187096
DOC Long sentence was hard to parse and ambiguous in _classification.…
kwinkunks Dec 6, 2019
65e5b05
DOC Removed duplicate 'classes_' attribute in Naive Bayes classifiers…
kp1302 Dec 6, 2019
be0323b
BUG Fixes pandas dataframe bug with boolean dtypes (#15797)
thomasjpfan Dec 6, 2019
e547c90
BUG Returns only public estimators in all_estimators (#15380)
thomasjpfan Dec 6, 2019
1237e40
DOC improve doc for multiclass and types_of_target (#15333)
lucyleeow Dec 6, 2019
444ab2b
TST Increases tol for check_pca_float_dtype_preservation assertion (#…
thomasjpfan Dec 7, 2019
f0f812a
update _alpha_grid class in _coordinate_descent.py (#15835)
JJmistry Dec 8, 2019
1fa5f22
FIX Explicit conversion of ndarray to object dtype. (#15832)
alfaro96 Dec 9, 2019
f244e51
BLD Parallelize sphinx builds on circle ci (#15745)
thomasjpfan Dec 9, 2019
42a4bfd
DOC correct url for preprocessing (#15853)
SylvainLan Dec 10, 2019
6887f45
MNT avoid generating too many cross links in examples (#15844)
NicolasHug Dec 10, 2019
94876f4
DOC Correct wrong doc in precision_recall_fscore_support (#15833)
qinhanmin2014 Dec 10, 2019
db288e1
DOC add comment in check_pca_float_dtype_preservation (#15819)
adrinjalali Dec 10, 2019
50b3304
DOC correct indents in docstring _split.py (#15843)
qinhanmin2014 Dec 10, 2019
548b190
DOC fix docstring of KMeans based on sklearn guideline (#15754)
cgsavard Dec 10, 2019
f1feaca
DOC fix docstring of AgglomerativeClustering based on sklearn guideli…
vachanda Dec 10, 2019
b085f25
DOC fix docstring of AffinityPropagation based on sklearn guideline (…
cgsavard Dec 10, 2019
e22cb6f
DOC fixed SpectralCoclustering and SpectralBiclustering docstrings fo…
cgsavard Dec 10, 2019
25030f5
DOC fix FeatureAgglomeration and MiniBatchKMeans docstring following …
vachanda Dec 10, 2019
3c4d3f0
TST Specify random_state in test_cv_iterable_wrapper (#15829)
qinhanmin2014 Dec 11, 2019
697b605
DOC Include LinearSV{C, R} in models that support sample_weights (#15…
sambhav Dec 13, 2019
84feae2
DOC correct some indents (#15875)
qinhanmin2014 Dec 13, 2019
be0fafb
DOC Fix documentation of default values in tree classes (#15870)
alfaro96 Dec 13, 2019
0277f3a
DOC fix typo in docstring (#15887)
wenliwyan Dec 14, 2019
2f7afa3
DOC FIX default value for xticks_rotation in plot_confusion_matrix (#…
shivamgargsya Dec 14, 2019
b09f905
Fix imports in pip3 ubuntu by suffixing affected files (#15891)
thomasjpfan Dec 18, 2019
f035bac
MNT Raise erorr when normalize is invalid in confusion_matrix (#15888)
qinhanmin2014 Dec 18, 2019
a7aedd5
[MRG] DOC Increases search results for API object results (#15574)
thomasjpfan Dec 18, 2019
098cd3a
MNT Ignores warning in pyamg for deprecated scipy.random (#15914)
thomasjpfan Dec 18, 2019
ce49cb4
DOC Instructions to troubleshoot Windows path length limit (#15916)
ogrisel Dec 18, 2019
4676789
DOC add versionadded directive to some estimators (#15849)
Dec 19, 2019
e93260a
DOC clarify doc-string of roc_auc_score and add references (#15293)
oulenz Dec 19, 2019
accb491
MNT Adds skip lint to azure pipeline CI (#15904)
thomasjpfan Dec 19, 2019
2627d9e
BLD Fixes bug when building with NO_MATHJAX=1 (#15892)
thomasjpfan Dec 19, 2019
4dceec7
[MRG] BUG Checks to number of axes in passed in ax more generically (…
thomasjpfan Dec 19, 2019
27f3621
EXA Minor fixes in plot_sparse_logistic_regression_20newsgroups.py (#…
lesteve Dec 19, 2019
50d2664
BUG Do not shadow public functions with deprecated modules (#15846)
ogrisel Dec 19, 2019
188e80d
Import sklearn._distributor_init first (#15929)
ogrisel Dec 20, 2019
8e2ea2b
DOC Fix typos, via a Levenshtein-style corrector (#15923)
bwignall Dec 20, 2019
25bb667
DOC in canned comment, mention that PR title becomes commit me… (#15935)
jnothman Dec 20, 2019
ce74535
DOC/EXA Correct spelling of "Classification" (#15938)
ritchieng Dec 20, 2019
199e23d
BUG fix pip3 ubuntu update by suffixing file (#15928)
glemaitre Dec 20, 2019
d35a8da
[MRG] Ways to compute center_shift_total were different in "full" and…
inder128 Dec 20, 2019
c09a4e7
TST Fixes integer test for train and test indices (#15941)
scibol Dec 20, 2019
126b0a4
BUG ensure that parallel/sequential give the same permutation importa…
glemaitre Dec 20, 2019
4768703
Formatting fixes in changelog (#15944)
ogrisel Dec 20, 2019
1739eb9
MRG FIX: order of values of self.quantiles_ in QuantileTransformer (#…
tirthasheshpatel Dec 21, 2019
23eb807
[MRG] BUG Fixes constrast in plot_confusion_matrix (#15936)
thomasjpfan Dec 21, 2019
24ecdad
BUG use zero_division argument in classification_report (#15879)
Bibyutatsu Dec 21, 2019
70cee11
DOC change logreg solver in plot_logistic_path (#15927)
agramfort Dec 23, 2019
10c0945
DOC fix whats new ordering (#15961)
glemaitre Dec 23, 2019
bcc3c24
COSMIT use np.iinfo to define the max int32 (#15960)
glemaitre Dec 24, 2019
6a6ea37
DOC Apply numpydoc validation to VotingRegressor methods (#15969)
Dec 26, 2019
882830a
DOC improve naive_bayes.py documentation (#15943)
Dec 26, 2019
e8b24bb
DOC Fix default values in Perceptron documentation (#15965)
ankishb Dec 26, 2019
3c2c3d3
DOC Improve default values in logistic documentation (#15966)
ankishb Dec 26, 2019
31a8134
DOC Improve documentation of default values for imputers (#15964)
pulkitmehtawork Dec 26, 2019
f0c6bac
EXA/MAINT Simplify code in manifold learning example (#15949)
DavidBreuer Dec 26, 2019
5d80a39
DOC Improve default values in SGD documentation (#15967)
ankishb Dec 26, 2019
5d3e79f
DOC Improve defaults in neural network documentation (#15968)
ankishb Dec 26, 2019
1b866a4
FIX use safe_sparse_dot for callable kernel in LabelSpreading (#15868)
nik-sm Dec 27, 2019
e7b03fe
BUG Adds attributes back to check_is_fitted (#15947)
thomasjpfan Dec 27, 2019
8201ad7
DOC update check_is_fitted what's new
qinhanmin2014 Dec 27, 2019
2df830d
DOC change python-devel to python3-devel for yum. (#15986)
Windber Dec 29, 2019
9f8f895
DOC Correct the default value of values_format in plot_confusion_matr…
qinhanmin2014 Dec 29, 2019
784b91b
[MRG] MNT Updates pypy to use 7.2.0 (#15954)
thomasjpfan Dec 29, 2019
cbe29e0
FIX Add missing 'values_format' param to disp.plot() in plot_confusio…
blynotes Dec 31, 2019
30fcc8d
FIX support scalar values in fit_params in SearchCV (#15863)
adrinjalali Dec 31, 2019
b6d43a7
Remove abstractmethod that silently brake downstream packages (#15996)
bsipocz Dec 31, 2019
0cb7c09
FIX restore BaseNB._check_X without abstractmethod decoration (#15997)
ogrisel Jan 1, 2020
f9c9ccc
Update v0.22 changelog for 0.22.1 (#16002)
ogrisel Jan 2, 2020
faaed7c
STY Removes hidden scroll bar (#15999)
thomasjpfan Jan 2, 2020
55b77e9
Flake8 fixes
ogrisel Jan 2, 2020
7e22b9e
Fix: remove left-over lines that should have been deleted during conf…
ogrisel Jan 2, 2020
3f0a965
Fix missing imports
ogrisel Jan 2, 2020
20cd7d8
Update version
ogrisel Jan 2, 2020
0d98c77
Fix test_check_is_fitted
ogrisel Jan 2, 2020
26f6459
Make test_sag_regressor_computed_correctly deterministic (#16003)
ogrisel Jan 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

pypy3:
docker:
- image: pypy:3.6-7.1.1
- image: pypy:3.6-7.2.0
steps:
- restore_cache:
keys:
Expand Down
13 changes: 9 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ jobs:
- bash: conda create --name flake8_env --yes flake8
displayName: Install flake8
- bash: |
source activate flake8_env
./build_tools/circle/linting.sh
if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[lint\ skip\] ]]; then
# skip linting
echo "Skipping linting"
exit 0
else
source activate flake8_env
./build_tools/circle/linting.sh
fi
displayName: Run linting


Expand Down Expand Up @@ -65,10 +71,9 @@ jobs:
JOBLIB_VERSION: '0.12.3'
COVERAGE: 'true'
# Linux environment to test the latest available dependencies and MKL.
# It runs tests requiring pandas and PyAMG.
# It runs tests requiring lightgbm, pandas and PyAMG.
pylatest_pip_openblas_pandas:
DISTRIB: 'conda-pip-latest'
# FIXME: pinned until SciPy wheels are available for Pyhon 3.8
PYTHON_VERSION: '3.8'
PYTEST_VERSION: '4.6.2'
COVERAGE: 'true'
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench_plot_randomized_svd.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# in case the reconstructed (dense) matrix is too large
MAX_MEMORY = np.int(2e9)

# The following datasets can be dowloaded manually from:
# The following datasets can be downloaded manually from:
# CIFAR 10: https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
# SVHN: http://ufldl.stanford.edu/housenumbers/train_32x32.mat
CIFAR_FOLDER = "./cifar-10-batches-py/"
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench_text_vectorizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def f():
text = fetch_20newsgroups(subset='train').data[:1000]

print("="*80 + '\n#' + " Text vectorizers benchmark" + '\n' + '='*80 + '\n')
print("Using a subset of the 20 newsrgoups dataset ({} documents)."
print("Using a subset of the 20 newsgroups dataset ({} documents)."
.format(len(text)))
print("This benchmarks runs in ~1 min ...")

Expand Down
4 changes: 3 additions & 1 deletion build_tools/azure/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ make_conda() {
version_ge() {
# The two version numbers are separated with a new line is piped to sort
# -rV. The -V activates for version number sorting and -r sorts in
# decending order. If the first argument is the top element of the sort, it
# descending order. If the first argument is the top element of the sort, it
# is greater than or equal to the second argument.
test "$(printf "${1}\n${2}" | sort -rV | head -n 1)" == "$1"
}
Expand Down Expand Up @@ -92,6 +92,8 @@ elif [[ "$DISTRIB" == "conda-pip-latest" ]]; then
python -m pip install numpy scipy cython joblib
python -m pip install pytest==$PYTEST_VERSION pytest-cov pytest-xdist
python -m pip install pandas matplotlib pyamg
# do not install dependencies for lightgbm since it requires scikit-learn
python -m pip install lightgbm --no-deps
fi

if [[ "$COVERAGE" == "true" ]]; then
Expand Down
13 changes: 8 additions & 5 deletions build_tools/circle/build_test_pypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ source pypy-env/bin/activate
python --version
which python

# XXX: numpy version pinning can be reverted once PyPy
# compatibility is resolved for numpy v1.6.x. For instance,
# when PyPy3 >6.0 is released (see numpy/numpy#12740)
pip install --extra-index https://antocuni.github.io/pypy-wheels/ubuntu numpy Cython pytest
pip install scipy sphinx numpydoc docutils joblib pillow
pip install -U pip

# pins versions to install wheel from https://antocuni.github.io/pypy-wheels/manylinux2010
pip install --extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010 numpy==1.18.0 scipy==1.3.2

# Install Cython directly
pip install https://antocuni.github.io/pypy-wheels/ubuntu/Cython/Cython-0.29.14-py3-none-any.whl
pip install sphinx numpydoc docutils joblib pillow pytest

ccache -M 512M
export CCACHE_COMPRESS=1
Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def pytest_collection_modifyitems(config, items):
skip_marker = pytest.mark.skip(
reason='FeatureHasher is not compatible with PyPy')
for item in items:
if item.name.endswith(('hashing.FeatureHasher',
if item.name.endswith(('_hash.FeatureHasher',
'text.HashingVectorizer')):
item.add_marker(skip_marker)

Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS = -j auto
SPHINXBUILD ?= sphinx-build
PAPER =
BUILDDIR = _build
Expand Down
5 changes: 4 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
if os.environ.get('NO_MATHJAX'):
extensions.append('sphinx.ext.imgmath')
imgmath_image_format = 'svg'
mathjax_path = ''
else:
extensions.append('sphinx.ext.mathjax')
mathjax_path = ('https://cdn.jsdelivr.net/npm/mathjax@3/es5/'
Expand Down Expand Up @@ -304,7 +305,9 @@ def __call__(self, directory):
'branch': binder_branch,
'dependencies': './binder/requirements.txt',
'use_jupyter_lab': True
}
},
# avoid generating too many cross links
'inspect_global_variables': False,
}


Expand Down
4 changes: 2 additions & 2 deletions doc/developers/advanced_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ feature, code or documentation improvement).
If you plan on submitting a pull-request, you should clone from your fork
instead.

#. Install a compiler with OpenMP_ support for your platform. See intructions
#. Install a compiler with OpenMP_ support for your platform. See instructions
for :ref:`compiler_windows`, :ref:`compiler_macos`, :ref:`compiler_linux`
and :ref:`compiler_freebsd`.

Expand Down Expand Up @@ -339,7 +339,7 @@ architecture (e.g. ARM), you can install the system versions::

On Red Hat and clones (e.g. CentOS), install the dependencies using::

sudo yum -y install gcc gcc-c++ python-devel numpy scipy
sudo yum -y install gcc gcc-c++ python3-devel numpy scipy

Linux compilers from conda-forge
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
5 changes: 3 additions & 2 deletions doc/developers/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ modifying code and submitting a PR:
to record your changes in Git, then push the changes to your GitHub
account with::

$ git push -u origin my-feature
$ git push -u origin my_feature

10. Follow `these
<https://help.github.com/articles/creating-a-pull-request-from-a-fork>`_
Expand Down Expand Up @@ -377,7 +377,7 @@ complies with the following rules before marking a PR as ``[MRG]``. The
methods available in scikit-learn.

10. New features often need to be illustrated with narrative documentation in
the user guide, with small code snipets. If relevant, please also add
the user guide, with small code snippets. If relevant, please also add
references in the literature, with PDF links when possible.

11. The user guide should also include expected time and space complexity
Expand Down Expand Up @@ -437,6 +437,7 @@ message, the following actions are taken.
---------------------- -------------------
[scipy-dev] Add a Travis build with our dependencies (numpy, scipy, etc ...) development builds
[ci skip] CI is skipped completely
[lint skip] Azure pipeline skips linting
[doc skip] Docs are not built
[doc quick] Docs built, but excludes example gallery plots
[doc build] Docs built including example gallery plots
Expand Down
2 changes: 1 addition & 1 deletion doc/developers/maintainer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Making a release
2. On the branch for releasing, update the version number in
sklearn/__init__.py, the ``__version__`` variable by removing ``dev*`` only
when ready to release.
On master, increment the verson in the same place (when branching for
On master, increment the version in the same place (when branching for
release).

3. Create the tag and push it::
Expand Down
4 changes: 2 additions & 2 deletions doc/developers/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ Issue/Comment: Linking to comments

Please use links to comments, which make it a lot easier to see what you are referring to, rather than just linking to the issue. See [this](https://stackoverflow.com/questions/25163598/how-do-i-reference-a-specific-issue-comment-on-github) for more details.

PR-NEW: Better description
PR-NEW: Better description and title
::

Thanks for the pull request! Please make the title of the PR descriptive so that we can easily recall the issue it is resolving. You should state what issue (or PR) it fixes/resolves in the description (see [here](http://scikit-learn.org/dev/developers/contributing.html#contributing-pull-requests)).
Thanks for the pull request! Please make the title of the PR more descriptive. The title will become the commit message when this is merged. You should state what issue (or PR) it fixes/resolves in the description using the syntax described [here](http://scikit-learn.org/dev/developers/contributing.html#contributing-pull-requests).

PR-NEW: Fix #
::
Expand Down
2 changes: 1 addition & 1 deletion doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ Methods

TODO: `This gist
<https://gist.github.com/jnothman/4807b1b0266613c20ba4d1f88d0f8cf5>`_
higlights the use of the different formats for multilabel.
highlights the use of the different formats for multilabel.
multioutput classification
A list of 2d arrays, corresponding to each multiclass decision
function.
Expand Down
37 changes: 36 additions & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ If you have not installed NumPy or SciPy yet, you can also install these using
conda or pip. When using pip, please ensure that *binary wheels* are used,
and NumPy and SciPy are not recompiled from source, which can happen when using
particular configurations of operating system and hardware (such as Linux on
a Raspberry Pi).
a Raspberry Pi).

If you must install scikit-learn and its dependencies with pip, you can install
it as ``scikit-learn[alldeps]``.
Expand Down Expand Up @@ -255,3 +255,38 @@ WinPython for Windows

The `WinPython <https://winpython.github.io/>`_ project distributes
scikit-learn as an additional plugin.


Troubleshooting
===============

.. _windows_longpath:

Error caused by file path length limit on Windows
-------------------------------------------------

It can happen that pip fails to install packages when reaching the default path
size limit of Windows if Python is installed in a nested location such as the
`AppData` folder structure under the user home directory, for instance::

C:\Users\username>C:\Users\username\AppData\Local\Microsoft\WindowsApps\python.exe -m pip install scikit-learn
Collecting scikit-learn
...
Installing collected packages: scikit-learn
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\username\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\datasets\\tests\\data\\openml\\292\\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz'

In this case it is possible to lift that limit in the Windows registry by
using the ``regedit`` tool:

#. Type "regedit" in the Windows start menu to launch ``regedit``.

#. Go to the
``Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem``
key.

#. Edit the value of the ``LongPathsEnabled`` property of that key and set
it to 1.

#. Reinstall scikit-learn (ignoring the previous broken installation)::

pip install --exists-action=i scikit-learn
2 changes: 1 addition & 1 deletion doc/modules/clustering.rst
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ core sample, and is at least ``eps`` in distance from any core sample, is
considered an outlier by the algorithm.

While the parameter ``min_samples`` primarily controls how tolerant the
algorithm is towards noise (on noisy and large data sets it may be desiable
algorithm is towards noise (on noisy and large data sets it may be desirable
to increase this parameter), the parameter ``eps`` is *crucial to choose
appropriately* for the data set and distance function and usually cannot be
left at the default value. It controls the local neighborhood of the points.
Expand Down
16 changes: 10 additions & 6 deletions doc/modules/model_evaluation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1348,8 +1348,8 @@ the one-vs-rest algorithm computes the average of the ROC AUC scores for each
class against all other classes. In both cases, the predicted labels are
provided in an array with values from 0 to ``n_classes``, and the scores
correspond to the probability estimates that a sample belongs to a particular
class. The OvO and OvR algorithms supports weighting uniformly
(``average='macro'``) and weighting by the prevalence (``average='weighted'``).
class. The OvO and OvR algorithms support weighting uniformly
(``average='macro'``) and by prevalence (``average='weighted'``).

**One-vs-one Algorithm**: Computes the average AUC of all possible pairwise
combinations of classes. [HT2001]_ defines a multiclass AUC metric weighted
Expand Down Expand Up @@ -1380,10 +1380,10 @@ the keyword argument ``multiclass`` to ``'ovo'`` and ``average`` to
``'weighted'``. The ``'weighted'`` option returns a prevalence-weighted average
as described in [FC2009]_.

**One-vs-rest Algorithm**: Computes the AUC of each class against the rest.
The algorithm is functionally the same as the multilabel case. To enable this
algorithm set the keyword argument ``multiclass`` to ``'ovr'``. Similar to
OvO, OvR supports two types of averaging: ``'macro'`` [F2006]_ and
**One-vs-rest Algorithm**: Computes the AUC of each class against the rest
[PD2000]_. The algorithm is functionally the same as the multilabel case. To
enable this algorithm set the keyword argument ``multiclass`` to ``'ovr'``.
Like OvO, OvR supports two types of averaging: ``'macro'`` [F2006]_ and
``'weighted'`` [F2001]_.

In applications where a high false positive rate is not tolerable the parameter
Expand Down Expand Up @@ -1422,6 +1422,10 @@ to the given limit.
<https://www.math.ucdavis.edu/~saito/data/roc/ferri-class-perf-metrics.pdf>`_
Pattern Recognition Letters. 30. 27-38.
.. [PD2000] Provost, F., Domingos, P. (2000). Well-trained PETs: Improving
probability estimation trees (Section 6.2), CeDER Working Paper #IS-00-04,
Stern School of Business, New York University.
.. [F2006] Fawcett, T., 2006. `An introduction to ROC analysis.
<http://www.sciencedirect.com/science/article/pii/S016786550500303X>`_
Pattern Recognition Letters, 27(8), pp. 861-874.
Expand Down
4182
Loading
0