Skip to main content

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


Download files

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

Source Distribution

cltv-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

CLTV-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for cltv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d4acadc824e7195af9cfce082a2da1da7c5d24ccf7f82b18c48b37c21d1ccd72
MD5 c9eea035d9e02ea2d3824f2afd90bbe3
BLAKE2b-256 c4e5d1c3cf628be675b5a7902b0024e1039a4e5a48a63ab3892a4c2365a3fa8d

See more details on using hashes here.

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

Hashes for CLTV-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5358ccf753b7afc4d500893dfa8dfaa61b3942b443f0b3b34870b1304917807
MD5 ea2d75e36e297bb3758bcd54c53dc75c
BLAKE2b-256 fce329caf09ec89218ee1e553fd9b649ecc794346df57f22c05a6f3a1438cb8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page