Skip to content

Commit

Permalink
Merge branch '0.3dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Jul 13, 2018
2 parents b585055 + 58b4d15 commit e183839
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/clustering.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ color for each digit. This will help frame what follows.
standard_embedding = umap.UMAP(random_state=42).fit_transform(mnist.data)
plt.scatter(standard_embedding[:, 0], standard_embedding[:, 1], c=mnist.target, s=0.1, cmap='Spectral');
.. image:: clustering_files/clustering_6_1.png
.. image:: images/clustering_6_1.png


Traditional clustering
Expand All @@ -97,7 +97,7 @@ out UMAP embedded data by cluster membership.
plt.scatter(standard_embedding[:, 0], standard_embedding[:, 1], c=kmeans_labels, s=0.1, cmap='Spectral');
.. image:: clustering_files/clustering_10_1.png
.. image:: images/clustering_10_1.png


This is not really the result we were looking for (though it does expose
Expand Down Expand Up @@ -168,7 +168,7 @@ color the remaining points according to the cluster membership.
.. image:: clustering_files/clustering_16_1.png
.. image:: images/clustering_16_1.png


This looks somewhat underwhelming. It meets HDBSCAN's approach of "not
Expand Down Expand Up @@ -294,7 +294,7 @@ visualization attuned parameters:
c=mnist.target, s=0.1, cmap='Spectral');
.. image:: clustering_files/clustering_27_1.png
.. image:: images/clustering_27_1.png


As you can see we still have the general global structure, but we are
Expand Down Expand Up @@ -330,7 +330,7 @@ And now we can visualize the results, just as before.
cmap='Spectral');
.. image:: clustering_files/clustering_31_1.png
.. image:: images/clustering_31_1.png


We can see that we have done a much better job of finding clusters
Expand Down
21 changes: 21 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ The details for the underlying mathematics can be found in
McInnes, L, Healy, J, *UMAP: Uniform Manifold Approximation and Projection
for Dimension Reduction*, ArXiv e-prints 1802.03426, 2018

You can find the software `on github <https://github.com/lmcinnes/>`_.

**Installation**

Conda install, via the excellent work of the conda-forge team:

.. code:: bash
conda install -c conda-forge umap-learn
The conda-forge packages are available for linux, OS X, and Windows 64 bit.

PyPI install, presuming you have numba and sklearn and all its requirements
(numpy and scipy) installed:

.. code:: bash
pip install umap-learn
.. toctree::
:maxdepth: 2
:caption: User Guide / Tutorial:
Expand Down

0 comments on commit e183839

Please sign in to comment.