RatVec
This tool generates low-dimensional, continuous, distributed vector representations for non-numeric entities such as text or biological sequences (e.g. DNA or proteins) via kernel PCA with rational kernels.
The current implementation accepts any input dataset that can be read as a list of strings.
Installation

RatVec can be installed on Python 3.6+ from PyPI with the following code in your favorite terminal:
$ pip install ratvec
or from the latest code on GitHub with:
$ pip install git+https://github.com/ratvec/ratvec.git
It can be installed in development mode with:
$ git clone https://github.com/ratvec/ratvec.git
$ cd ratvec
$ pip install -e .
The -e dynamically links the code in the git repository to the Python site-packages so your changes get reflected immediately.
How to Use
ratvec automatically installs a command line interface. Check it out with:
$ ratvec --help
RatVec has three main commands: generate, train, and evaluate:
Generate. Downloads and prepare the SwissProt data set that is showcased in the RatVec paper.
$ ratvec generate
Train. Compute KPCA embeddings on a given data set. Please run the following command to see the arguments:
$ ratvec train --help
Evaluate. Evaluate and optimize KPCA embeddings. Please run the following command to see the arguments:
$ ratvec evaluate --help
Showcase Dataset
The application presented in the paper (SwissProt dataset [1] used by Boutet et al. [2]) can be downloaded directly from here or running the following command:
$ ratvec generate
References
Metadata
Release files for ratvec 0.1.2
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 |
|---|---|---|---|---|
| ratvec-0.1.2.tar.gz | 22.6 kB | Without provenance | Details for ratvec-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ratvec-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ratvec-0.1.2-py3-none-any.whl |
Total release size: 46.6 kB
Release files / ratvec-0.1.2.tar.gz
| Download URL | ratvec-0.1.2.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6142ad1cccb65540be3e2e1cdfa163ee23bd064d1ccedaaf043312123f65753
|
|
BLAKE2b-256 checksum How to use checksums |
e45f159e89b8c425adc6c338a058dedfd77fca1a979d8e16ef13436abf7e2145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / ratvec-0.1.2-py3-none-any.whl
| Download URL | ratvec-0.1.2-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bcba08243c0eb741158a447239ca202a5fd7cf6f5966eb2a149aefa17e31914
|
|
BLAKE2b-256 checksum How to use checksums |
edb219709fed9c8bb3a782bcf7d18dced012f7e9d64fb096b68cecb3365aad85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for ratvec 0.1.2
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.