Skip to main content

FAISSt DenStream


A performant implementation of the DenStream algorithm that relies heavily on FAISS.

Installation

Without GPU acceleration: pip install faisst-denstream

With GPU acceleration via CUDA 11: pip install faisst-denstream[gpu-cu11]

With GPU acceleration via CUDA 12: pip install faisst-denstream[gpu-cu12]

Basic Usage

import numpy as np

from faisst_denstream.DenStream import DenStream
from random import randint
from sys import stderr
from loguru import logger

logger.remove()
logger.add(stderr, level="INFO")

# Create model
lamb = 0.05
beta = 0.5
mu = 10
epsilon = 2
n_init_points = int(test_dataset_size * 0.25)
stream_speed = 10

model = DenStream(lamb, mu, beta, epsilon, n_init_points, stream_speed)

# Multiple datasets to simulate fitting model to stream
X1 = np.random.normal(loc=randint(0, 10), scale=randint(1, 3), size=(1000, 2))
X2 = np.random.normal(loc=randint(0, 10), scale=randint(1, 3), size=(1000, 2))

# As long as model has consumed at least n_init_points points, `predict` and `fit_predict`
# can be called to get cluster labels for each point
model.fit(X1)
x1_labels = model.predict(X1)

x2_labels = model.fit_predict(X2)

Metadata

Release files for faisst-denstream 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faisst-denstream 0.0.11
File Size Uploaded Provenance Actions
faisst_denstream-0.0.11.tar.gz 2.5 MB Without provenance Details for faisst_denstream-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faisst-denstream 0.0.11
File Interpreter ABI Platform Actions
faisst_denstream-0.0.11-py3-none-any.whl Python 3 none any Details for faisst_denstream-0.0.11-py3-none-any.whl

Total release size: 2.5 MB

Release files / faisst_denstream-0.0.11.tar.gz

Download URL faisst_denstream-0.0.11.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
30f3050162c2fb804183986d22df30fb5d1cda8da800984c2daa0c72e3b8cb77
BLAKE2b-256 checksum
How to use checksums
46229cc73b6bf0d8c03e6120a0fdbe149b2e7af614f3e17e2487ba80f76baa45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0rc1

Release files / faisst_denstream-0.0.11-py3-none-any.whl

Download URL faisst_denstream-0.0.11-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66b9cb21049199d16e38a71e9101a5c145e9b974032fb2a2571086768686ce11
BLAKE2b-256 checksum
How to use checksums
ba7996da1a05b2b5e5bfca362cdd09463f226729ceedbe2770d814fcebad09fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0rc1

Security for faisst-denstream 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page