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.2.0.tar.gz (27.9 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.2.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pocket_dimension-0.2.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pocket_dimension-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e4ed2927b32e3bf9e81bad555d2463703e226ad77261a45070cfdcd85ec6eae6
MD5 16f3a9f0eace33865db7ffd794d6d35d
BLAKE2b-256 6ad59ab23eee964dcd6f22fde29dd861228bdcd41ae5df4a3ebb526459c4a4a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pocket_dimension-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pocket_dimension-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8920ef66e4ea808078d157870adacd9aa8eff1d4da78003d20d35937a416b503
MD5 0828df055d2ae7da68dc3636704b8325
BLAKE2b-256 584552990f7d629ddae4697fd6a6c823c8b8165ed17579e7ec6aa05dc4693792

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