Skip to content

Commit 3e1af68

Browse files
authored
fix dependencies doc and add pointer to v0.5.0 for earlier Python versions (#298)
1 parent a3435f3 commit 3e1af68

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ metric-learn contains efficient Python implementations of several popular superv
2020

2121
**Dependencies**
2222

23-
- Python 3.6+
23+
- Python 3.6+ (the last version supporting Python 2 and Python 3.5 was
24+
`v0.5.0 <https://pypi.org/project/metric-learn/0.5.0/>`_)
2425
- numpy, scipy, scikit-learn>=0.20.3
2526

2627
**Optional dependencies**

doc/getting_started.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ metric-learn can be installed in either of the following ways:
1717

1818
**Dependencies**
1919

20-
- Python 2.7+, 3.4+
21-
- numpy, scipy, scikit-learn>=0.20.3
20+
- Python 3.6+ (the last version supporting Python 2 and Python 3.5 was
21+
`v0.5.0 <https://pypi.org/project/metric-learn/0.5.0/>`_)
22+
- numpy, scipy, scikit-learn>=0.20.3
2223

2324
**Optional dependencies**
2425

2526
- For SDML, using skggm will allow the algorithm to solve problematic cases
2627
(install from commit `a0ed406 <https://github.com/skggm/skggm/commit/a0ed406586c4364ea3297a658f415e13b5cbdaf8>`_).
2728
``pip install 'git+https://github.com/skggm/skggm.git@a0ed406586c4364ea3297a658f415e13b5cbdaf8'`` to install the required version of skggm from GitHub.
28-
- For running the examples only: matplotlib
29+
- For running the examples only: matplotlib
2930

3031
Quick start
3132
===========

doc/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ examples (for code illustrating some of these use-cases, see the
9696
metric learning provides a way to bias the clusters found by algorithms like
9797
K-Means towards the intended semantics.
9898
- Information retrieval: the learned metric can be used to retrieve the
99-
elements of a database that are semantically closer to a query element.
99+
elements of a database that are semantically closest to a query element.
100100
- Dimensionality reduction: metric learning may be seen as a way to reduce the
101101
data dimension in a (weakly) supervised setting.
102102
- More generally, the learned transformation :math:`L` can be used to project

0 commit comments

Comments
 (0)