Skip to main content

Probabilistic data structures for processing and searching very large datasets

Project description

https://github.com/ekzhu/datasketch/workflows/Python%20package/badge.svg https://zenodo.org/badge/DOI/10.5281/zenodo.290602.svg

datasketch gives you probabilistic data structures that can process and search very large amount of data super fast, with little loss of accuracy.

This package contains the following data sketches:

Data Sketch

Usage

MinHash

estimate Jaccard similarity and cardinality

Weighted MinHash

estimate weighted Jaccard similarity

HyperLogLog

estimate cardinality

HyperLogLog++

estimate cardinality

The following indexes for data sketches are provided to support sub-linear query time:

Index

For Data Sketch

Supported Query Type

MinHash LSH

MinHash, Weighted MinHash

Jaccard Threshold

MinHash LSH Forest

MinHash, Weighted MinHash

Jaccard Top-K

MinHash LSH Ensemble

MinHash

Containment Threshold

HNSW

Customizable

Metric Distances

datasketch must be used with Python 3.7 or above, NumPy 1.11 or above, and Scipy.

Note that MinHash LSH and MinHash LSH Ensemble also support Redis and Cassandra storage layer (see MinHash LSH at Scale).

Install

To install datasketch using pip:

pip install datasketch

This will also install NumPy as dependency.

To install with Redis dependency:

pip install datasketch[redis]

To install with Cassandra dependency:

pip install datasketch[cassandra]

Project details


Release history Release notifications | RSS feed

This version

1.6.2

Download files

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

Source Distribution

datasketch-1.6.2.tar.gz (85.6 kB view details)

Uploaded Source

Built Distribution

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

datasketch-1.6.2-py3-none-any.whl (83.3 kB view details)

Uploaded Python 3

File details

Details for the file datasketch-1.6.2.tar.gz.

File metadata

  • Download URL: datasketch-1.6.2.tar.gz
  • Upload date:
  • Size: 85.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for datasketch-1.6.2.tar.gz
Algorithm Hash digest
SHA256 e80168eac138f9bb5425ee2d2c9729f971623b70216eaf0f37ea3f4c915d9bcb
MD5 547af34d4984768b571b2c522ffd3eaa
BLAKE2b-256 6e1e24e932316b3297153a505749a8aff174df655e57c8b70a9c0f02d60449a7

See more details on using hashes here.

File details

Details for the file datasketch-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: datasketch-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 83.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for datasketch-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2eb79cb9ba6866f590a75afcf1eba97c029cfe3807e4a30ef0d925ff7ea7136
MD5 3a063388e476c5f10a878ac7e348e090
BLAKE2b-256 687c9fa7d313df30f814b05525c3641c904e0421edd3b33a624eddace295ce6e

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