├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── Makefile ├── README.md ├── btyd ├── __init__.py ├── datasets │ ├── CDNOW_master.txt │ ├── CDNOW_sample.txt │ ├── __init__.py │ ├── cdnow_customers_summary.csv │ ├── cdnow_customers_summary_with_transactions.csv │ ├── donations.csv │ └── example_transactions.csv ├── fitters │ ├── __init__.py │ ├── beta_geo_beta_binom_fitter.py │ ├── beta_geo_covar_fitter.py │ ├── beta_geo_fitter.py │ ├── gamma_gamma_fitter.py │ ├── modified_beta_geo_fitter.py │ └── pareto_nbd_fitter.py ├── generate_data.py ├── models │ ├── __init__.py │ ├── beta_geo_model.py │ ├── gamma_gamma_model.py │ └── mod_beta_geo_model.py ├── plotting.py └── utils.py ├── docs ├── Makefile ├── btyd_models_uml.png ├── build_requirements.txt ├── make.bat └── source │ ├── Changelog.rst │ ├── Generate RFM Summaries From a SQL Store.md │ ├── High Level Overview.md │ ├── Saving and Loading Models.md │ ├── User Guide.md │ ├── _static │ ├── alivematrix.png │ ├── betageo_graph.png │ ├── btyd_plotting.png │ ├── btyd_workflow.png │ ├── holdout_graph.png │ ├── models_uml.png │ ├── palive_history.png │ ├── plotperiodtrans.png │ └── rfmatrix.png │ ├── api_reference.rst │ ├── btyd.fitters.rst │ ├── btyd.models.rst │ ├── call_graph_modules.html │ ├── conf.py │ ├── index.rst │ ├── intro.rst │ └── lifetimes-all-tests-graph.html ├── pyproject.toml ├── readthedocs.yaml ├── setup.cfg └── tests ├── __init__.py ├── conftest.py ├── test_base_model.py ├── test_beta_geo_model.py ├── test_estimation.py ├── test_gamma_gamma_model.py ├── test_generate_data.py ├── test_mod_beta_geo_model.py ├── test_plotting.py └── test_utils.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/README.md -------------------------------------------------------------------------------- /btyd/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/__init__.py -------------------------------------------------------------------------------- /btyd/datasets/CDNOW_master.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/CDNOW_master.txt -------------------------------------------------------------------------------- /btyd/datasets/CDNOW_sample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/CDNOW_sample.txt -------------------------------------------------------------------------------- /btyd/datasets/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/__init__.py -------------------------------------------------------------------------------- /btyd/datasets/cdnow_customers_summary.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/cdnow_customers_summary.csv -------------------------------------------------------------------------------- /btyd/datasets/cdnow_customers_summary_with_transactions.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/cdnow_customers_summary_with_transactions.csv -------------------------------------------------------------------------------- /btyd/datasets/donations.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/donations.csv -------------------------------------------------------------------------------- /btyd/datasets/example_transactions.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/datasets/example_transactions.csv -------------------------------------------------------------------------------- /btyd/fitters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/__init__.py -------------------------------------------------------------------------------- /btyd/fitters/beta_geo_beta_binom_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/beta_geo_beta_binom_fitter.py -------------------------------------------------------------------------------- /btyd/fitters/beta_geo_covar_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/beta_geo_covar_fitter.py -------------------------------------------------------------------------------- /btyd/fitters/beta_geo_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/beta_geo_fitter.py -------------------------------------------------------------------------------- /btyd/fitters/gamma_gamma_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/gamma_gamma_fitter.py -------------------------------------------------------------------------------- /btyd/fitters/modified_beta_geo_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/modified_beta_geo_fitter.py -------------------------------------------------------------------------------- /btyd/fitters/pareto_nbd_fitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/fitters/pareto_nbd_fitter.py -------------------------------------------------------------------------------- /btyd/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/generate_data.py -------------------------------------------------------------------------------- /btyd/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/models/__init__.py -------------------------------------------------------------------------------- /btyd/models/beta_geo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/models/beta_geo_model.py -------------------------------------------------------------------------------- /btyd/models/gamma_gamma_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/models/gamma_gamma_model.py -------------------------------------------------------------------------------- /btyd/models/mod_beta_geo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/models/mod_beta_geo_model.py -------------------------------------------------------------------------------- /btyd/plotting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/plotting.py -------------------------------------------------------------------------------- /btyd/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/btyd/utils.py -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/btyd_models_uml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/btyd_models_uml.png -------------------------------------------------------------------------------- /docs/build_requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/build_requirements.txt -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/source/Changelog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/Changelog.rst -------------------------------------------------------------------------------- /docs/source/Generate RFM Summaries From a SQL Store.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/Generate RFM Summaries From a SQL Store.md -------------------------------------------------------------------------------- /docs/source/High Level Overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/High Level Overview.md -------------------------------------------------------------------------------- /docs/source/Saving and Loading Models.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/Saving and Loading Models.md -------------------------------------------------------------------------------- /docs/source/User Guide.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/User Guide.md -------------------------------------------------------------------------------- /docs/source/_static/alivematrix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/alivematrix.png -------------------------------------------------------------------------------- /docs/source/_static/betageo_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/betageo_graph.png -------------------------------------------------------------------------------- /docs/source/_static/btyd_plotting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/btyd_plotting.png -------------------------------------------------------------------------------- /docs/source/_static/btyd_workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/btyd_workflow.png -------------------------------------------------------------------------------- /docs/source/_static/holdout_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/holdout_graph.png -------------------------------------------------------------------------------- /docs/source/_static/models_uml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/models_uml.png -------------------------------------------------------------------------------- /docs/source/_static/palive_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/palive_history.png -------------------------------------------------------------------------------- /docs/source/_static/plotperiodtrans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/plotperiodtrans.png -------------------------------------------------------------------------------- /docs/source/_static/rfmatrix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/_static/rfmatrix.png -------------------------------------------------------------------------------- /docs/source/api_reference.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/api_reference.rst -------------------------------------------------------------------------------- /docs/source/btyd.fitters.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/btyd.fitters.rst -------------------------------------------------------------------------------- /docs/source/btyd.models.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/btyd.models.rst -------------------------------------------------------------------------------- /docs/source/call_graph_modules.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/call_graph_modules.html -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/index.rst -------------------------------------------------------------------------------- /docs/source/intro.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/intro.rst -------------------------------------------------------------------------------- /docs/source/lifetimes-all-tests-graph.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/docs/source/lifetimes-all-tests-graph.html -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/pyproject.toml -------------------------------------------------------------------------------- /readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/readthedocs.yaml -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/setup.cfg -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_base_model.py -------------------------------------------------------------------------------- /tests/test_beta_geo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_beta_geo_model.py -------------------------------------------------------------------------------- /tests/test_estimation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_estimation.py -------------------------------------------------------------------------------- /tests/test_gamma_gamma_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_gamma_gamma_model.py -------------------------------------------------------------------------------- /tests/test_generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_generate_data.py -------------------------------------------------------------------------------- /tests/test_mod_beta_geo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_mod_beta_geo_model.py -------------------------------------------------------------------------------- /tests/test_plotting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_plotting.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColtAllen/btyd/HEAD/tests/test_utils.py --------------------------------------------------------------------------------