ClusterAudienceKit
Segment millions of customers in <1 second. Know who matters.
RFM analysis, customer lifetime value prediction, churn detection, and lookalike modeling—all in one production-ready package. Process 1M+ customers instantly.
30-Second Start
from clusteraudiencekit import Segmentation, CLV
# Segment your customers
segments = Segmentation(df).fit()
print(segments.summary) # Automatic RFM + clustering
# Find high-value customers
clv = CLV(df)
vips = clv.top_customers(n=100)
print(f"Top 100 worth: ${clv.total_value(vips):,.0f}")
Why ClusterAudienceKit?
The Problem:
- Marketing teams manually segment (outdated, slow)
- No clear view of customer value
- Churn prediction requires multiple tools
- Building lookalike audiences is complex
The Solution:
- Automatic RFM segmentation (no configuration)
- Customer lifetime value prediction
- Churn scoring and early warning
- Lookalike audience generation
- Sub-second processing (1M+ customers)
Quick Start
from clusteraudiencekit import Segmentation, CLV
# Load customer data
df = load_customers()
# Automatic segmentation
segments = Segmentation(df).fit()
print(segments.summary)
# Calculate lifetime value
clv = CLV(df)
high_value = clv.top_customers(n=100)
Process 1M+ Customers in <1s
Optimized clustering on millions of records:
- K-means, DBSCAN, Hierarchical clustering
- 6 algorithm options
- Parallel processing
- GPU acceleration support
Key Features
- RFM analysis built-in
- 6 clustering algorithms
- Customer Lifetime Value (CLV)
- Churn prediction
- Lookalike modeling
- Neural network clustering
- Sub-second processing
Key Features
Audience Analysis
- RFM segmentation (Recency, Frequency, Monetary)
- 6 clustering algorithms (K-means, DBSCAN, Spectral, Hierarchical, GMM, Isolation Forest)
- Customer Lifetime Value (CLV) prediction
- Churn detection and scoring
- Lookalike audience modeling
Scalability
- Process 1M+ customers in <1 second
- Rust-powered core for speed
- Streaming data support
- Batch and real-time APIs
Integration
- Pandas/Polars DataFrames
- Cloud storage (S3, GCS)
- SQL databases
- BI tools (Tableau, Looker)
Requirements
- Python 3.10+
- NumPy ≥1.20.0
- Scikit-learn ≥1.0.0
- Pandas ≥1.3.0
- Rust core (precompiled wheels)
- Optional: Polars ≥0.18.0
Installation
pip install clusteraudiencekit
# or with uv
uv pip install clusteraudiencekit
# Verify installation
clusteraudiencekit --version
Use Cases
- Customer segmentation
- Churn prediction
- Retention campaigns
- CLV analysis
- Lookalike targeting
- Campaign personalization
Examples
from clusteraudiencekit import Segmentation, Churn, Lookalikes
# Segment customers
seg = Segmentation(df)
high_value = seg.segments['high_value']
# Predict churn
churn = Churn(df)
at_risk = churn.predict_churn(threshold=0.7)
# Find lookalikes
similar = Lookalikes(df).find_similar(seed_customers)
Benchmarks
| Customers | Time | Throughput |
|---|---|---|
| 100K | 50ms | 2M/s |
| 1M | 400ms | 2.5M/s |
| 10M | 3.5s | 2.8M/s |
Documentation
License
MIT License - See LICENSE
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clusteraudiencekit-7.0.0.tar.gz.
File metadata
- Download URL: clusteraudiencekit-7.0.0.tar.gz
- Upload date:
- Size: 236.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e8a12ac7da6dbcdd40bb9c6657e25782e14d94fb2aa7acab0b29d839c6e0664
|
|
| MD5 |
2cb845074db08dec5bdc4626a4a281ad
|
|
| BLAKE2b-256 |
8f34a8070feed951e6bd7bc8213abd89687368bddf10d5298788631138249b01
|
File details
Details for the file clusteraudiencekit-7.0.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: clusteraudiencekit-7.0.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 288.2 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d393f5509115e02f9f2c33636146149743fc57ec411ac3ba1758829ba91f579d
|
|
| MD5 |
edff517e117874b6316aaa0f65330265
|
|
| BLAKE2b-256 |
35e7466e42936139f33aa3159264eac1feac1508fea770475597afcd0d96fc15
|