retention models to forecast churn
Project description
retenmod
This is a python port of the R package foretell. This projects customer retention rates, see “How to Project Customer Retention” Revisited: The Role of Duration Dependence (Fader et al., 2018) for the original formulation and description of the models.
To install, just use pip:
pip install retenmod
Only dependencies are scipy and numpy. For a simple example of use for the BdW model:
import retenmod
surv = [100, 86.9, 74.3, 65.3, 59.3]
res = retenmod.bdw(surv,6)
print(res.params)
print(res.proj)
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
retenmod-0.0.1.tar.gz
(3.9 kB
view details)
File details
Details for the file retenmod-0.0.1.tar.gz.
File metadata
- Download URL: retenmod-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
624da86ef9fcae3819617fd49c129350a782f03545a37df87f105c9b0a0a5052
|
|
| MD5 |
97b392086c2e50c7c1ddd0dd4700cc94
|
|
| BLAKE2b-256 |
31eec7d967d9672c54096e353afe612ae81a07524774a4696bd2d945a2933c32
|