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.3.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pocket_dimension-0.1.3-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pocket_dimension-0.1.3.tar.gz
  • Upload date:
  • Size: 27.8 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.3.tar.gz
Algorithm Hash digest
SHA256 ac3f3192106733dc2f19e5085c916f72efb02f46b78d83af82660103561674a2
MD5 2bcd9395bff85d47f508043a5ac08047
BLAKE2b-256 f0b92cdb1a576421e457fd958ec42cd04a63435054b22885a7e7d71a0480cfe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pocket_dimension-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5b28154621d5763a2b02be94adb600bb500bd01407589cef499739c59cf39e1
MD5 c11589ca8a932eda5053626b0e5720d0
BLAKE2b-256 c78eacbb2b7936abacdff50d761a20db4c5ab4db51594c9268f8182696f0ab91

See more details on using hashes here.

Supported by

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