Skip to main content

Sampling SVD singular vectors for alternative DSM

Project description

entropix

GitHub release PyPI release Build MIT License

Generate count-based Distributional Semantic Models by sampling SVD singular vectors instead of using top components.

Install

pip install entropix

or, after a git clone:

python3 setup.py install

Use

Sequential mode

entropix sample \
--model /abs/path/to/dense/numpy/model.npy \
--vocab /abs/path/to/corresponding/model.vocab \
--dataset dataset_to_optimize_on \  # men, simlex or simverb
--shuffle \
--mode seq \
--kfold-size .2 \  # size of kfold, between 0 and .5
--metric pearson \  # spr(spearman), pearson, rmse or both (spr+rmse)
--num-threads 5

Limit mode

entropix sample \
--model /abs/path/to/dense/numpy/model.npy \
--vocab /abs/path/to/corresponding/model.vocab \
--dataset dataset_to_optimize_on \  # men, simlex or simverb
--mode limit \
--metric pearson \
--limit 10  # number of dimensions to sample

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entropix-1.1.2.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file entropix-1.1.2.tar.gz.

File metadata

  • Download URL: entropix-1.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5

File hashes

Hashes for entropix-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d68907b6783a035e0149c135afa79a333c8abe3e7e3dc1e35bfcabad5ad20daf
MD5 50114f089440ff2236f46125cdb38b17
BLAKE2b-256 1a8096c4070ef3ab14a1ea2e696d6464dc3dead998412e483bcae4b4e5aa4796

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page