Python package for graph-based clustering and semi-supervised learning
Project description
Graph-based Clustering and Semi-Supervised Learning
This python package is devoted to efficient implementations of modern graph-based learning algorithms for both semi-supervised learning and clustering. The package implements many popular datasets (currently MNIST, FashionMNIST, and CIFAR-10) in a way that makes it simple for users to test out new algorithms and rapidly compare against existing methods. Full documentation is available, including detailed example scripts.
This package also reproduces experiments from the paper
J. Calder, B. Cook, M. Thorpe, D. Slepcev. Poisson Learning: Graph Based Semi-Supervised Learning at Very Low Label Rates., Proceedings of the 37th International Conference on Machine Learning, PMLR 119:1306-1316, 2020.
Installation
Install with
pip install graphlearning
Required packages will be installed automatically, and include numpy, scipy, sklearn, and matplotlib. Some features in the package rely on other packages, including annoy for approximate nearest neighbor searches, and torch for GPU acceleration. You will have to install these manually, if needed, with
pip install annoy torch
It can be difficult to install annoy, depending on your operating system.
To install the most recent version of GraphLearning from the github source, which is updated more frequently, run
git clone https://github.com/jwcalder/GraphLearning
cd GraphLearning
python setup.py install --user
If you prefer to use ssh swap the first line with
git clone git@github.com:jwcalder/GraphLearning.git
Documentation and Examples
Full documentation for the package is available here. The documentation includes examples of how to use the package. All example scripts linked from the documentation can be found in the examples folder.
Older versions of GraphLearning
This repository hosts the current version of the package, which is numbered >=1.0.0. This version is not backwards compatible with earlier versions of the package. The old version is archived here and can be installed with
pip install graphlearning==0.0.3
To make sure you will load the old version when running import graphlearning
, it may be necessary to uninstall all existing versions pip uninstall graphlearning
before running the installation command above.
Citations
If you use this package in your research, please cite the package with the bibtex entry below.
@software{graphlearning,
author = {Jeff Calder},
title = {GraphLearning Python Package},
month = jan,
year = 2022,
publisher = {Zenodo},
doi = {10.5281/zenodo.5850940},
url = {https://doi.org/10.5281/zenodo.5850940}
}
Contact and questions
Email jwcalder@umn.edu with any questions or comments.
Acknowledgments
Several people have contributed to the development of this software:
- Mauricio Rios Flores (Machine Learning Researcher, Amazon)
- Brendan Cook (PhD Candidate in Mathematics, University of Minnesota)
- Matt Jacobs (Postdoc, UCLA)
- Mahmood Ettehad (Postdoc, IMA)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for graphlearning-1.1.2-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9c291e24a9e553dc408835c343aa330bce01202ed7207ed9adcce9a41baa2b |
|
MD5 | 03fd4432f3085290e30f044c463e348b |
|
BLAKE2b-256 | ce75c298c4bab482636b88d7f40d16df45e396c49ad56a970cbcfd19acb8795d |
Hashes for graphlearning-1.1.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e8e455e13f7b8f2e5636a9c49f44d0b82c031d1f5b60f609b1af8057b3a2b6 |
|
MD5 | 5836572671689a0a3fc947a12e5a1ff1 |
|
BLAKE2b-256 | da866979bd97efddc8f92012f873a8cc93b9e5a9d412addb4b6ef622e028eb9d |
Hashes for graphlearning-1.1.2-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 267d3fa538910a155aaa57eafaf7f1466307deb57f0b6ca6f31f2fe3d107720b |
|
MD5 | d6e6e2588020c1997b9ae79233247dc4 |
|
BLAKE2b-256 | 1c0d1446de2bf67ae2fcb86f04fed8bf4bc2e3defdc01bd1568a4313c757d205 |
Hashes for graphlearning-1.1.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500e3a77dcfc7169e807777b859072103a42369340cf156bb988c844bce5a7af |
|
MD5 | 5f1e0f3c4c170e4455fb86fae7b70a76 |
|
BLAKE2b-256 | e044e608ae9a31f27ff2e7310c686cb96b199b20e664873b0fbde7c5450183a1 |
Hashes for graphlearning-1.1.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0223ec2d81aed33887804b550122288406e1074fbff40ea31ef9f1df3bb84f6f |
|
MD5 | 42765bbf05711af02689d953b4b390be |
|
BLAKE2b-256 | ce7c888ee22497fb48c27876cbd99fe0eadbe03b6e74714f3723afbff6fb0b85 |
Hashes for graphlearning-1.1.2-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb965fe6a6aba85d558d5012f26f2351bb69e0034c30496865f487561944166 |
|
MD5 | 52c53b738f8d75e8f9e47ae3710b7164 |
|
BLAKE2b-256 | f40608713c6b37de830d7da99cd635df79f538493141dd27a6e579e3e4081573 |
Hashes for graphlearning-1.1.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72309c580230961c5d31efebfcf9a3a2b0516091e4d700f41958b1febfa4a2fc |
|
MD5 | d3114ebe8f05af2681dc09c85caa5f1c |
|
BLAKE2b-256 | 898c010fac5a733541494117b0689350bdf4361dab3812db45989dc2bf8cef21 |
Hashes for graphlearning-1.1.2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39688b6d21307363f7ea43dea5090cee7150acbf9ab3ca34c563928a14be945b |
|
MD5 | c64629e93ce056ab0009acad0deb565c |
|
BLAKE2b-256 | 681d571e8cf038ca07e9e2580e181f28d00f0c36276550647cc46cdaebe126d5 |
Hashes for graphlearning-1.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47188f13fa53be5d526db2861fc9e2299ffb503922db9f32cc6db8b807fa053e |
|
MD5 | 4ec768a719b27073f9d988e659b64bc3 |
|
BLAKE2b-256 | 12d6c014695dbafe8f835b7fa288dc25d00d2db3e4902d21e2512062409757f3 |
Hashes for graphlearning-1.1.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b84c78762568b7e6e9e6d5dada952f633c9242d1d9d072262566049431ddf9b |
|
MD5 | df38ff0f072c603c6063e168f68ebb31 |
|
BLAKE2b-256 | fce83b6e6eb280a9cba7638e3f905e211916c8e199798c4f316b194e9de4da78 |
Hashes for graphlearning-1.1.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8948bf36c1f2aa8990d19db6699321ff54fb3ec1f1f577f140b99500af057c05 |
|
MD5 | 68139ad738fe8676d9374937c7cb933e |
|
BLAKE2b-256 | 0b0a3e6ad0d9fead1dd0fa9847f4d1050021f1207bf81c1c8e7d819165e49847 |
Hashes for graphlearning-1.1.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0138627437e32b6b2dcccefed046a4106e88af0bc5a9839b3b539d909cf887d |
|
MD5 | 7a6be149ae999e151aa1eb5375446466 |
|
BLAKE2b-256 | e28802f2976c2ef6e1ad04fa4f7340c5653cf96708ad973c6222cf4414e08621 |