Python package providing scikit-learn compatible classifier based on Reflective Random Indexing (RRI) [1].
Documentation
The documentation is hosted on http://sklearn-rri.readthedocs.io/
Installation
Latest from the source:
git clone https://github.com/cmick/sklearn-rri.git cd sklearn-rri python setup.py install
Using PyPI:
pip install sklearn-rri
Dependencies
sklearn-rri requires:
NumPy (>= 1.11.0)
SciPy (>= 0.16.0)
scikit-learn (>= 0.17.0)
Examples
>>> from sklearn_rri import ReflectiveRandomIndexing
>>> from sklearn.random_projection import sparse_random_matrix
>>> X = sparse_random_matrix(100, 100, density=0.01, random_state=42)
>>> rri = ReflectiveRandomIndexing(50, random_state=42)
>>> rri.fit(X)
ReflectiveRandomIndexing(n_components=50, n_iter=3, norm=True,
random_state=42, seed='auto')
>>> rri.transform(X)
<100x50 sparse matrix of type '<class 'numpy.float64'>'
with 1154 stored elements in Compressed Sparse Row format>
References
[1] Trevor Cohen, Roger Schaneveldt, and Dominic Widdows,, Reflective Random Indexing and Indirect Inference: A Scalable Method for Discovery of Implicit Connections, 2010. https://www.ncbi.nlm.nih.gov/pubmed/19761870
Metadata
Release files for sklearn-rri 0.1.0
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 |
|---|---|---|---|---|
| sklearn-rri-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for sklearn-rri-0.1.0.tar.gz |
Release files / sklearn-rri-0.1.0.tar.gz
| Download URL | sklearn-rri-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db6cb3ae2211d3879bc1cdca9e0c79c586188681a85417c7030f9046a8de2c7f
|
|
BLAKE2b-256 checksum How to use checksums |
88dbd79435da09d49436dc8a12285ed1cb2f3eb633757efeafbfe6dbbe5c59b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sklearn-rri 0.1.0
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.