A customer Lifetime Value package for preprocessing data
Project description
Customer Lifetime Value (CLTV) Analysis
Overview
This package provides tools for Customer Lifetime Value (CLTV) analysis, including data processing, visualization, and predictive modeling. It utilizes the BetaGeoFitter and GammaGammaFitter from the lifetimes
library to calculate and analyze customer lifetime value.
Features
-
Data Processing and Visualization:
- Clean and preprocess data
- Calculate CLTV using BG/NBD and Gamma-Gamma models
- Visualize CLTV and customer segments
-
Logistic Regression:
- Train a logistic regression model to classify high-value customers
- Evaluate model performance using various metrics
-
Enhanced Visualizations:
- Generate correlation heatmaps
- Cluster customers using K-Means and visualize clusters
Requirements
To use this package, you need the following Python packages:
pandas
numpy
matplotlib
seaborn
lifetimes
scikit-learn
You can install these dependencies using:
pip install -r requirements.txt
Usage
To import the package and run the main function, use the following format:
from CLTV.cltv import main
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file cltv-0.1.0.tar.gz
.
File metadata
- Download URL: cltv-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4acadc824e7195af9cfce082a2da1da7c5d24ccf7f82b18c48b37c21d1ccd72 |
|
MD5 | c9eea035d9e02ea2d3824f2afd90bbe3 |
|
BLAKE2b-256 | c4e5d1c3cf628be675b5a7902b0024e1039a4e5a48a63ab3892a4c2365a3fa8d |
File details
Details for the file CLTV-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: CLTV-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5358ccf753b7afc4d500893dfa8dfaa61b3942b443f0b3b34870b1304917807 |
|
MD5 | ea2d75e36e297bb3758bcd54c53dc75c |
|
BLAKE2b-256 | fce329caf09ec89218ee1e553fd9b649ecc794346df57f22c05a6f3a1438cb8f |