graphclust: graph-based clustering and data visualization in Python ==================================================================== .. image:: _static/banner.png :alt: graphclust :class: fc-banner **graphclust** is a scikit-learn compatible toolbox for clustering and visualizing data through graphs. It is the Python successor of the MATLAB toolbox that accompanied the monograph *Graph-Based Clustering and Data Visualization Algorithms* (Á. Vathy-Fogarassy, J. Abonyi, Springer, 2013), extended with the main graph-based methods published since then. .. grid:: 1 2 2 3 :gutter: 3 .. grid-item-card:: Graphs from data :link: api/graphs :link-type: doc kNN, ε, MST, relative neighborhood, Gabriel and Delaunay graphs, shared neighbors, geodesic distances. .. grid-item-card:: Topology learning :link: api/vq :link-type: doc Neural gas, topology representing networks, GNG, GWR, DTRN, WINN. .. grid-item-card:: Clustering with trees :link: api/cluster :link-type: doc Zahn's MST clustering, hybrid MST–Gath–Geva, HDBSCAN*, density peaks. .. grid-item-card:: Shared neighbors and communities :link: api/cluster :link-type: doc Jarvis–Patrick, fuzzy neighborhood similarity, SNN, spectral clustering, Louvain and Leiden. .. grid-item-card:: Maps :link: api/manifold :link-type: doc Sammon, MDS, LPP, SOM, Isomap, Isotop, CDA, OVI-NG, GNLP-NG, TRNMap, diffusion maps, UMAP, t-SNE. .. grid-item-card:: Assessment :link: api/metrics :link-type: doc VAT/iVAT, trustworthiness, continuity, co-ranking, DBCV. Quick start ----------- .. code-block:: bash pip install graphclust .. code-block:: python from graphclust import TRNMap, HybridMSTGG from graphclust.datasets import make_s_curve, make_chainlink X, t = make_s_curve(2000, random_state=0) tm = TRNMap(n_nodes=150, random_state=0).fit(X) tm.embedding_ # map positions of the nodes tm.transform(X) # map positions of the samples Xc, yc = make_chainlink() HybridMSTGG(max_clusters=4, lambda_=2.5).fit(Xc).labels_ Where to go next ---------------- * :doc:`installation`: requirements and optional extras. * :doc:`auto_examples/index`: the **example gallery**, one runnable script per method, each downloadable as a Jupyter notebook. * :doc:`book`: the **book** *Graph-Based Clustering and Data Visualization in Python*. * :doc:`api/index`: the API reference. * :doc:`migration`: coming from the MATLAB toolbox. .. toctree:: :hidden: :maxdepth: 2 installation auto_examples/index book api/index migration citing changelog