Skip to main content

Memory-efficient, dense, random projection of sparse vectors

Project description

A small spiral galaxy inside a small glass sphere

Pocket Dimension provides a memory-efficient, dense, random projection of sparse vectors. This random projection is the used to be able to take records {“id”: str, “features”: List[bytes], “counts”: List[int]}, convert them into sparse random vectors using scikit-learn’s FeatureHasher, and then project them down to lower dimensional dense vectors.

When the very large sparse universe becomes too inhospitable, escape into a cozy pocket dimension.

Documentation

Documentation for the API and theoretical foundations of the algorithms can be found at https://mhendrey.github.io/pocket_dimension

Installation

Pocket Dimension may be install using pip:

pip install pocket_dimension

I’m working on a conda-forge version, but this uses pybloomfiltermmap3 which is currently only on PyPi.

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

pocket_dimension-0.1.4.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

pocket_dimension-0.1.4-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file pocket_dimension-0.1.4.tar.gz.

File metadata

  • Download URL: pocket_dimension-0.1.4.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pocket_dimension-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d0a8f6985ce798e3c210652cae3c2c35a4372ee82c46a8965a18d21bddcb7003
MD5 4c906ba3abd9714cb017ca5bc30b2fb6
BLAKE2b-256 d46418f076ef4e0b957066deaad29762c161892991a5c67aba5637dcd98cf035

See more details on using hashes here.

File details

Details for the file pocket_dimension-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pocket_dimension-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd4ca5dfdeca97c7627a39752b46a8e05bc98fcbbf99e154a587369c171f8b0
MD5 3032ddafc68c2064b35d05980546db96
BLAKE2b-256 7c9d3ec5249bf8be8e98e494e5352326afffe5f6956f3714fb43c468ee907314

See more details on using hashes here.

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