Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8640931

Browse files
committed
API changes in metrics/pairwise.py
1 parent 07bf0d3 commit 8640931

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/whats_new.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ version 0.8:
168168
LassoLARSCV, etc.) have been renamed to
169169
``sklearn.linear_model.Lars()``.
170170

171+
- All distance metrics and kernels in ``sklearn.metrics.pairwise`` now have a Y
172+
parameter, which by default is None. If not given, the result is the distance
173+
(or kernel similarity) between each sample in Y. If given, the pairwise
174+
distance (or kernel similarity) between samples in X to Y are given.
175+
176+
- ``sklearn.metrics.pairwise.l1_distance`` is now called ``manhattan_distance``,
177+
and by default returns the pairwise distance. For the component wise distance,
178+
set the parameter ``sum_over_features`` to ``False``.
179+
171180
Backward compatibilty package aliases and other deprecated classes and
172181
functions will be removed in version 0.11.
173182

0 commit comments

Comments
 (0)