Skip to content

Commit 3135daa

Browse files
committed
Pushing the docs to dev/ for branch: master, commit 871b25162339c60557e5bf1754ea553ec33adf52
1 parent 4c13843 commit 3135daa

File tree

1,200 files changed

+3740
-3751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,200 files changed

+3740
-3751
lines changed
Binary file not shown.

dev/_downloads/76064e174f651530bf4f9c3043b45bad/approximate_nearest_neighbors.py

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,28 @@
1818
compatibility reasons, one extra neighbor is computed when
1919
`mode == 'distance'`. Please note that we do the same in the proposed wrappers.
2020
21-
Sample output:
22-
23-
```
24-
Benchmarking on MNIST_2000:
25-
---------------------------
26-
AnnoyTransformer: 0.583 sec
27-
NMSlibTransformer: 0.321 sec
28-
KNeighborsTransformer: 1.225 sec
29-
TSNE with AnnoyTransformer: 4.903 sec
30-
TSNE with NMSlibTransformer: 5.009 sec
31-
TSNE with KNeighborsTransformer: 6.210 sec
32-
TSNE with internal NearestNeighbors: 6.365 sec
33-
34-
Benchmarking on MNIST_10000:
35-
----------------------------
36-
AnnoyTransformer: 4.457 sec
37-
NMSlibTransformer: 2.080 sec
38-
KNeighborsTransformer: 30.680 sec
39-
TSNE with AnnoyTransformer: 30.225 sec
40-
TSNE with NMSlibTransformer: 43.295 sec
41-
TSNE with KNeighborsTransformer: 64.845 sec
42-
TSNE with internal NearestNeighbors: 64.984 sec
43-
```
21+
Sample output::
22+
23+
Benchmarking on MNIST_2000:
24+
---------------------------
25+
AnnoyTransformer: 0.583 sec
26+
NMSlibTransformer: 0.321 sec
27+
KNeighborsTransformer: 1.225 sec
28+
TSNE with AnnoyTransformer: 4.903 sec
29+
TSNE with NMSlibTransformer: 5.009 sec
30+
TSNE with KNeighborsTransformer: 6.210 sec
31+
TSNE with internal NearestNeighbors: 6.365 sec
32+
33+
Benchmarking on MNIST_10000:
34+
----------------------------
35+
AnnoyTransformer: 4.457 sec
36+
NMSlibTransformer: 2.080 sec
37+
KNeighborsTransformer: 30.680 sec
38+
TSNE with AnnoyTransformer: 30.225 sec
39+
TSNE with NMSlibTransformer: 43.295 sec
40+
TSNE with KNeighborsTransformer: 64.845 sec
41+
TSNE with internal NearestNeighbors: 64.984 sec
42+
4443
"""
4544
# Author: Tom Dupre la Tour
4645
#

dev/_downloads/8beb8fb5e0db15c9c745e5d2e6e5c677/approximate_nearest_neighbors.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Approximate nearest neighbors in TSNE\n\n\nThis example presents how to chain KNeighborsTransformer and TSNE in a\npipeline. It also shows how to wrap the packages `annoy` and `nmslib` to\nreplace KNeighborsTransformer and perform approximate nearest neighbors.\nThese packages can be installed with `pip install annoy nmslib`.\n\nNote: Currently `TSNE(metric='precomputed')` does not modify the precomputed\ndistances, and thus assumes that precomputed euclidean distances are squared.\nIn future versions, a parameter in TSNE will control the optional squaring of\nprecomputed distances (see #12401).\n\nNote: In KNeighborsTransformer we use the definition which includes each\ntraining point as its own neighbor in the count of `n_neighbors`, and for\ncompatibility reasons, one extra neighbor is computed when\n`mode == 'distance'`. Please note that we do the same in the proposed wrappers.\n\nSample output:\n\n```\nBenchmarking on MNIST_2000:\n---------------------------\nAnnoyTransformer: 0.583 sec\nNMSlibTransformer: 0.321 sec\nKNeighborsTransformer: 1.225 sec\nTSNE with AnnoyTransformer: 4.903 sec\nTSNE with NMSlibTransformer: 5.009 sec\nTSNE with KNeighborsTransformer: 6.210 sec\nTSNE with internal NearestNeighbors: 6.365 sec\n\nBenchmarking on MNIST_10000:\n----------------------------\nAnnoyTransformer: 4.457 sec\nNMSlibTransformer: 2.080 sec\nKNeighborsTransformer: 30.680 sec\nTSNE with AnnoyTransformer: 30.225 sec\nTSNE with NMSlibTransformer: 43.295 sec\nTSNE with KNeighborsTransformer: 64.845 sec\nTSNE with internal NearestNeighbors: 64.984 sec\n```\n"
18+
"\n# Approximate nearest neighbors in TSNE\n\n\nThis example presents how to chain KNeighborsTransformer and TSNE in a\npipeline. It also shows how to wrap the packages `annoy` and `nmslib` to\nreplace KNeighborsTransformer and perform approximate nearest neighbors.\nThese packages can be installed with `pip install annoy nmslib`.\n\nNote: Currently `TSNE(metric='precomputed')` does not modify the precomputed\ndistances, and thus assumes that precomputed euclidean distances are squared.\nIn future versions, a parameter in TSNE will control the optional squaring of\nprecomputed distances (see #12401).\n\nNote: In KNeighborsTransformer we use the definition which includes each\ntraining point as its own neighbor in the count of `n_neighbors`, and for\ncompatibility reasons, one extra neighbor is computed when\n`mode == 'distance'`. Please note that we do the same in the proposed wrappers.\n\nSample output::\n\n Benchmarking on MNIST_2000:\n ---------------------------\n AnnoyTransformer: 0.583 sec\n NMSlibTransformer: 0.321 sec\n KNeighborsTransformer: 1.225 sec\n TSNE with AnnoyTransformer: 4.903 sec\n TSNE with NMSlibTransformer: 5.009 sec\n TSNE with KNeighborsTransformer: 6.210 sec\n TSNE with internal NearestNeighbors: 6.365 sec\n\n Benchmarking on MNIST_10000:\n ----------------------------\n AnnoyTransformer: 4.457 sec\n NMSlibTransformer: 2.080 sec\n KNeighborsTransformer: 30.680 sec\n TSNE with AnnoyTransformer: 30.225 sec\n TSNE with NMSlibTransformer: 43.295 sec\n TSNE with KNeighborsTransformer: 64.845 sec\n TSNE with internal NearestNeighbors: 64.984 sec\n"
1919
]
2020
},
2121
{
Binary file not shown.

dev/_downloads/scikit-learn-docs.pdf

12.6 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes
-315 Bytes
-315 Bytes
283 Bytes
283 Bytes

0 commit comments

Comments
 (0)