Rankability Toolbox
This repo contains various implementations that provide insights into the rankability of data and the linear ordering problem.
Install instructions
Prerequisites
graphviz headers must be installed:
apt-get install -y libgraphviz-dev
Recommended package installation
pip install pyrankability
Post package installation: Gurobi License
This library relies on Gurobi optimizer. Gurobi provides free academic licenses and more information on obtaining and installing your license can be found here: https://support.gurobi.com/hc/en-us/articles/360040541251.
Verify installation
import pyrankability
n=8
D=np.zeros((n,n))
D[np.triu_indices(n,1)]=1
D[[5,3,7]] = 1-D[[5,3,7]]
D=pd.DataFrame(D)
k_hillside,details_hillside = pyrankability.rank.solve(D,method='hillside')
k_lop,details_lop = pyrankability.rank.solve(D,method='lop')
assert k_hillside == 54 and k_lop == 12.0
Development notes
Running tests
cd ranking_toolbox
python3 -m venv ../env
source ../env/bin/activate
cd tests
pytest tests.py
Authors
Paul Anderson, Ph.D.
Department of Computer Science
Director, Data Science Program
College of Charleston
Amy Langville, Ph.D.
Department of Mathematics
College of Charleston
Tim Chartier, Ph.D.
Department of Mathematics
Davidson College
Acknowledgements
We would like to thank the entire IGARDS team for their invaluable insight and encouragement.
Metadata
Release files for pyrankability 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrankability-0.1.4.tar.gz | 21.9 kB | Without provenance | Details for pyrankability-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrankability-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pyrankability-0.1.4-py3-none-any.whl |
Total release size: 45.5 kB
Release files / pyrankability-0.1.4.tar.gz
| Download URL | pyrankability-0.1.4.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48da58149364cc64dc98700e21575d688a97d12ea79d82bc301d89533bbe8943
|
|
BLAKE2b-256 checksum How to use checksums |
1d8389326ed9b42617f756ccc538fb87012be8f84ff2c1dea97a22b227fa4492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pyrankability-0.1.4-py3-none-any.whl
| Download URL | pyrankability-0.1.4-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf005bfae90e073145ff5510cdbe8e5186ddf68c7450b39e50da57e17e0853fa
|
|
BLAKE2b-256 checksum How to use checksums |
4ff4f8d7ffc635d37fb41f5f46103bc833bb42394182f4676fd5e86cdab204f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for pyrankability 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.