churnkit 0.75.0a3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. churnkit-0.75.0a3/.gitignore +59 -0
  2. churnkit-0.75.0a3/LICENSE +202 -0
  3. churnkit-0.75.0a3/PKG-INFO +229 -0
  4. churnkit-0.75.0a3/README.md +99 -0
  5. churnkit-0.75.0a3/constraints/.gitkeep +0 -0
  6. churnkit-0.75.0a3/exploration_notebooks/00_start_here.ipynb +647 -0
  7. churnkit-0.75.0a3/exploration_notebooks/01_data_discovery.ipynb +1165 -0
  8. churnkit-0.75.0a3/exploration_notebooks/01a_a_temporal_text_deep_dive.ipynb +961 -0
  9. churnkit-0.75.0a3/exploration_notebooks/01a_temporal_deep_dive.ipynb +1690 -0
  10. churnkit-0.75.0a3/exploration_notebooks/01b_temporal_quality.ipynb +679 -0
  11. churnkit-0.75.0a3/exploration_notebooks/01c_temporal_patterns.ipynb +3305 -0
  12. churnkit-0.75.0a3/exploration_notebooks/01d_event_aggregation.ipynb +1463 -0
  13. churnkit-0.75.0a3/exploration_notebooks/02_column_deep_dive.ipynb +1430 -0
  14. churnkit-0.75.0a3/exploration_notebooks/02a_text_columns_deep_dive.ipynb +854 -0
  15. churnkit-0.75.0a3/exploration_notebooks/03_quality_assessment.ipynb +1639 -0
  16. churnkit-0.75.0a3/exploration_notebooks/04_relationship_analysis.ipynb +1890 -0
  17. churnkit-0.75.0a3/exploration_notebooks/05_multi_dataset.ipynb +1457 -0
  18. churnkit-0.75.0a3/exploration_notebooks/06_feature_opportunities.ipynb +1624 -0
  19. churnkit-0.75.0a3/exploration_notebooks/07_modeling_readiness.ipynb +780 -0
  20. churnkit-0.75.0a3/exploration_notebooks/08_baseline_experiments.ipynb +979 -0
  21. churnkit-0.75.0a3/exploration_notebooks/09_business_alignment.ipynb +572 -0
  22. churnkit-0.75.0a3/exploration_notebooks/10_spec_generation.ipynb +1179 -0
  23. churnkit-0.75.0a3/exploration_notebooks/11_scoring_validation.ipynb +1418 -0
  24. churnkit-0.75.0a3/exploration_notebooks/12_view_documentation.ipynb +151 -0
  25. churnkit-0.75.0a3/pyproject.toml +214 -0
  26. churnkit-0.75.0a3/scripts/README.md +46 -0
  27. churnkit-0.75.0a3/scripts/data/create_snapshot.py +247 -0
  28. churnkit-0.75.0a3/scripts/data/generate_retail_dataset.py +82 -0
  29. churnkit-0.75.0a3/scripts/data/generate_test_data.py +365 -0
  30. churnkit-0.75.0a3/scripts/data/migrate_parquet_to_delta.py +185 -0
  31. churnkit-0.75.0a3/scripts/data/migrate_to_temporal.py +216 -0
  32. churnkit-0.75.0a3/scripts/databricks/build_wheel.sh +58 -0
  33. churnkit-0.75.0a3/scripts/databricks/capture_runtime.py +186 -0
  34. churnkit-0.75.0a3/scripts/databricks/dbr_init.sh +342 -0
  35. churnkit-0.75.0a3/scripts/databricks/generate_constraints.py +216 -0
  36. churnkit-0.75.0a3/scripts/databricks/notebook_setup.py +422 -0
  37. churnkit-0.75.0a3/scripts/notebooks/clean_notebook_outputs.py +90 -0
  38. churnkit-0.75.0a3/scripts/notebooks/export_tutorial_html.py +425 -0
  39. churnkit-0.75.0a3/scripts/notebooks/init_project.py +474 -0
  40. churnkit-0.75.0a3/scripts/notebooks/plotly_image_preprocessor.py +101 -0
  41. churnkit-0.75.0a3/scripts/notebooks/run_exploration.py +370 -0
  42. churnkit-0.75.0a3/scripts/notebooks/test_notebooks.py +164 -0
  43. churnkit-0.75.0a3/scripts/templates/tutorial_html/conf.json +6 -0
  44. churnkit-0.75.0a3/scripts/templates/tutorial_html/index.html.j2 +175 -0
  45. churnkit-0.75.0a3/scripts/update_notebook_paths.py +142 -0
  46. churnkit-0.75.0a3/src/customer_retention/__init__.py +37 -0
  47. churnkit-0.75.0a3/src/customer_retention/analysis/__init__.py +0 -0
  48. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/__init__.py +62 -0
  49. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/exploration_manager.py +470 -0
  50. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/explorer.py +258 -0
  51. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/findings.py +291 -0
  52. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/layered_recommendations.py +485 -0
  53. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/recommendation_builder.py +148 -0
  54. churnkit-0.75.0a3/src/customer_retention/analysis/auto_explorer/recommendations.py +418 -0
  55. churnkit-0.75.0a3/src/customer_retention/analysis/business/__init__.py +26 -0
  56. churnkit-0.75.0a3/src/customer_retention/analysis/business/ab_test_designer.py +144 -0
  57. churnkit-0.75.0a3/src/customer_retention/analysis/business/fairness_analyzer.py +166 -0
  58. churnkit-0.75.0a3/src/customer_retention/analysis/business/intervention_matcher.py +121 -0
  59. churnkit-0.75.0a3/src/customer_retention/analysis/business/report_generator.py +222 -0
  60. churnkit-0.75.0a3/src/customer_retention/analysis/business/risk_profile.py +199 -0
  61. churnkit-0.75.0a3/src/customer_retention/analysis/business/roi_analyzer.py +139 -0
  62. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/__init__.py +20 -0
  63. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/calibration_analyzer.py +133 -0
  64. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/cv_analyzer.py +144 -0
  65. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/error_analyzer.py +107 -0
  66. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/leakage_detector.py +394 -0
  67. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/noise_tester.py +140 -0
  68. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/overfitting_analyzer.py +190 -0
  69. churnkit-0.75.0a3/src/customer_retention/analysis/diagnostics/segment_analyzer.py +122 -0
  70. churnkit-0.75.0a3/src/customer_retention/analysis/discovery/__init__.py +8 -0
  71. churnkit-0.75.0a3/src/customer_retention/analysis/discovery/config_generator.py +49 -0
  72. churnkit-0.75.0a3/src/customer_retention/analysis/discovery/discovery_flow.py +19 -0
  73. churnkit-0.75.0a3/src/customer_retention/analysis/discovery/type_inferencer.py +147 -0
  74. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/__init__.py +13 -0
  75. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/cohort_analyzer.py +185 -0
  76. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/counterfactual.py +175 -0
  77. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/individual_explainer.py +141 -0
  78. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/pdp_generator.py +103 -0
  79. churnkit-0.75.0a3/src/customer_retention/analysis/interpretability/shap_explainer.py +106 -0
  80. churnkit-0.75.0a3/src/customer_retention/analysis/jupyter_save_hook.py +28 -0
  81. churnkit-0.75.0a3/src/customer_retention/analysis/notebook_html_exporter.py +136 -0
  82. churnkit-0.75.0a3/src/customer_retention/analysis/notebook_progress.py +60 -0
  83. churnkit-0.75.0a3/src/customer_retention/analysis/plotly_preprocessor.py +154 -0
  84. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/__init__.py +54 -0
  85. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/base.py +158 -0
  86. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/cleaning/__init__.py +11 -0
  87. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/cleaning/consistency.py +107 -0
  88. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/cleaning/deduplicate.py +94 -0
  89. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/cleaning/impute.py +67 -0
  90. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/cleaning/outlier.py +71 -0
  91. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/datetime/__init__.py +3 -0
  92. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/datetime/extract.py +149 -0
  93. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/encoding/__init__.py +3 -0
  94. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/encoding/categorical.py +114 -0
  95. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/pipeline.py +74 -0
  96. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/registry.py +76 -0
  97. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/selection/__init__.py +3 -0
  98. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/selection/drop_column.py +56 -0
  99. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/transform/__init__.py +4 -0
  100. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/transform/power.py +94 -0
  101. churnkit-0.75.0a3/src/customer_retention/analysis/recommendations/transform/scale.py +112 -0
  102. churnkit-0.75.0a3/src/customer_retention/analysis/visualization/__init__.py +15 -0
  103. churnkit-0.75.0a3/src/customer_retention/analysis/visualization/chart_builder.py +2619 -0
  104. churnkit-0.75.0a3/src/customer_retention/analysis/visualization/console.py +122 -0
  105. churnkit-0.75.0a3/src/customer_retention/analysis/visualization/display.py +171 -0
  106. churnkit-0.75.0a3/src/customer_retention/analysis/visualization/number_formatter.py +36 -0
  107. churnkit-0.75.0a3/src/customer_retention/artifacts/__init__.py +3 -0
  108. churnkit-0.75.0a3/src/customer_retention/artifacts/fit_artifact_registry.py +146 -0
  109. churnkit-0.75.0a3/src/customer_retention/cli.py +93 -0
  110. churnkit-0.75.0a3/src/customer_retention/core/__init__.py +0 -0
  111. churnkit-0.75.0a3/src/customer_retention/core/compat/__init__.py +193 -0
  112. churnkit-0.75.0a3/src/customer_retention/core/compat/detection.py +99 -0
  113. churnkit-0.75.0a3/src/customer_retention/core/compat/ops.py +48 -0
  114. churnkit-0.75.0a3/src/customer_retention/core/compat/pandas_backend.py +57 -0
  115. churnkit-0.75.0a3/src/customer_retention/core/compat/spark_backend.py +75 -0
  116. churnkit-0.75.0a3/src/customer_retention/core/components/__init__.py +11 -0
  117. churnkit-0.75.0a3/src/customer_retention/core/components/base.py +79 -0
  118. churnkit-0.75.0a3/src/customer_retention/core/components/components/__init__.py +13 -0
  119. churnkit-0.75.0a3/src/customer_retention/core/components/components/deployer.py +26 -0
  120. churnkit-0.75.0a3/src/customer_retention/core/components/components/explainer.py +26 -0
  121. churnkit-0.75.0a3/src/customer_retention/core/components/components/feature_eng.py +33 -0
  122. churnkit-0.75.0a3/src/customer_retention/core/components/components/ingester.py +34 -0
  123. churnkit-0.75.0a3/src/customer_retention/core/components/components/profiler.py +34 -0
  124. churnkit-0.75.0a3/src/customer_retention/core/components/components/trainer.py +38 -0
  125. churnkit-0.75.0a3/src/customer_retention/core/components/components/transformer.py +36 -0
  126. churnkit-0.75.0a3/src/customer_retention/core/components/components/validator.py +37 -0
  127. churnkit-0.75.0a3/src/customer_retention/core/components/enums.py +33 -0
  128. churnkit-0.75.0a3/src/customer_retention/core/components/orchestrator.py +94 -0
  129. churnkit-0.75.0a3/src/customer_retention/core/components/registry.py +59 -0
  130. churnkit-0.75.0a3/src/customer_retention/core/config/__init__.py +39 -0
  131. churnkit-0.75.0a3/src/customer_retention/core/config/column_config.py +95 -0
  132. churnkit-0.75.0a3/src/customer_retention/core/config/experiments.py +71 -0
  133. churnkit-0.75.0a3/src/customer_retention/core/config/pipeline_config.py +117 -0
  134. churnkit-0.75.0a3/src/customer_retention/core/config/source_config.py +83 -0
  135. churnkit-0.75.0a3/src/customer_retention/core/utils/__init__.py +28 -0
  136. churnkit-0.75.0a3/src/customer_retention/core/utils/leakage.py +85 -0
  137. churnkit-0.75.0a3/src/customer_retention/core/utils/severity.py +53 -0
  138. churnkit-0.75.0a3/src/customer_retention/core/utils/statistics.py +90 -0
  139. churnkit-0.75.0a3/src/customer_retention/generators/__init__.py +0 -0
  140. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/__init__.py +167 -0
  141. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/base.py +55 -0
  142. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/cell_builder.py +49 -0
  143. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/config.py +47 -0
  144. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/databricks_generator.py +48 -0
  145. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/local_generator.py +48 -0
  146. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/project_init.py +192 -0
  147. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/runner.py +150 -0
  148. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/script_generator.py +110 -0
  149. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/__init__.py +19 -0
  150. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/base_stage.py +86 -0
  151. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s01_ingestion.py +100 -0
  152. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s02_profiling.py +95 -0
  153. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s03_cleaning.py +180 -0
  154. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s04_transformation.py +165 -0
  155. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s05_feature_engineering.py +115 -0
  156. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s06_feature_selection.py +97 -0
  157. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s07_model_training.py +176 -0
  158. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s08_deployment.py +81 -0
  159. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s09_monitoring.py +112 -0
  160. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s10_batch_inference.py +642 -0
  161. churnkit-0.75.0a3/src/customer_retention/generators/notebook_generator/stages/s11_feature_store.py +348 -0
  162. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/__init__.py +23 -0
  163. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/code_generator.py +196 -0
  164. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/context.py +147 -0
  165. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/data_materializer.py +188 -0
  166. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/databricks_exporter.py +411 -0
  167. churnkit-0.75.0a3/src/customer_retention/generators/orchestration/doc_generator.py +311 -0
  168. churnkit-0.75.0a3/src/customer_retention/generators/pipeline_generator/__init__.py +26 -0
  169. churnkit-0.75.0a3/src/customer_retention/generators/pipeline_generator/findings_parser.py +727 -0
  170. churnkit-0.75.0a3/src/customer_retention/generators/pipeline_generator/generator.py +142 -0
  171. churnkit-0.75.0a3/src/customer_retention/generators/pipeline_generator/models.py +166 -0
  172. churnkit-0.75.0a3/src/customer_retention/generators/pipeline_generator/renderer.py +2125 -0
  173. churnkit-0.75.0a3/src/customer_retention/generators/spec_generator/__init__.py +37 -0
  174. churnkit-0.75.0a3/src/customer_retention/generators/spec_generator/databricks_generator.py +433 -0
  175. churnkit-0.75.0a3/src/customer_retention/generators/spec_generator/generic_generator.py +373 -0
  176. churnkit-0.75.0a3/src/customer_retention/generators/spec_generator/mlflow_pipeline_generator.py +685 -0
  177. churnkit-0.75.0a3/src/customer_retention/generators/spec_generator/pipeline_spec.py +298 -0
  178. churnkit-0.75.0a3/src/customer_retention/integrations/__init__.py +0 -0
  179. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/__init__.py +13 -0
  180. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/base.py +10 -0
  181. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/factory.py +25 -0
  182. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/feature_store/__init__.py +6 -0
  183. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/feature_store/base.py +57 -0
  184. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/feature_store/databricks.py +94 -0
  185. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/feature_store/feast_adapter.py +97 -0
  186. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/feature_store/local.py +75 -0
  187. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/mlflow/__init__.py +6 -0
  188. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/mlflow/base.py +32 -0
  189. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/mlflow/databricks.py +54 -0
  190. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/mlflow/experiment_tracker.py +161 -0
  191. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/mlflow/local.py +50 -0
  192. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/storage/__init__.py +5 -0
  193. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/storage/base.py +33 -0
  194. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/storage/databricks.py +76 -0
  195. churnkit-0.75.0a3/src/customer_retention/integrations/adapters/storage/local.py +59 -0
  196. churnkit-0.75.0a3/src/customer_retention/integrations/feature_store/__init__.py +47 -0
  197. churnkit-0.75.0a3/src/customer_retention/integrations/feature_store/definitions.py +215 -0
  198. churnkit-0.75.0a3/src/customer_retention/integrations/feature_store/manager.py +744 -0
  199. churnkit-0.75.0a3/src/customer_retention/integrations/feature_store/registry.py +412 -0
  200. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/__init__.py +28 -0
  201. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/context.py +212 -0
  202. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/feedback_collector.py +184 -0
  203. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/orchestrator.py +168 -0
  204. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/recommendation_tracker.py +341 -0
  205. churnkit-0.75.0a3/src/customer_retention/integrations/iteration/signals.py +212 -0
  206. churnkit-0.75.0a3/src/customer_retention/integrations/llm_context/__init__.py +4 -0
  207. churnkit-0.75.0a3/src/customer_retention/integrations/llm_context/context_builder.py +201 -0
  208. churnkit-0.75.0a3/src/customer_retention/integrations/llm_context/prompts.py +100 -0
  209. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/__init__.py +103 -0
  210. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/batch_integration.py +149 -0
  211. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/early_warning_model.py +227 -0
  212. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/event_schema.py +214 -0
  213. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/online_store_writer.py +249 -0
  214. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/realtime_scorer.py +261 -0
  215. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/trigger_engine.py +293 -0
  216. churnkit-0.75.0a3/src/customer_retention/integrations/streaming/window_aggregator.py +393 -0
  217. churnkit-0.75.0a3/src/customer_retention/stages/__init__.py +0 -0
  218. churnkit-0.75.0a3/src/customer_retention/stages/cleaning/__init__.py +9 -0
  219. churnkit-0.75.0a3/src/customer_retention/stages/cleaning/base.py +28 -0
  220. churnkit-0.75.0a3/src/customer_retention/stages/cleaning/missing_handler.py +160 -0
  221. churnkit-0.75.0a3/src/customer_retention/stages/cleaning/outlier_handler.py +204 -0
  222. churnkit-0.75.0a3/src/customer_retention/stages/deployment/__init__.py +28 -0
  223. churnkit-0.75.0a3/src/customer_retention/stages/deployment/batch_scorer.py +106 -0
  224. churnkit-0.75.0a3/src/customer_retention/stages/deployment/champion_challenger.py +299 -0
  225. churnkit-0.75.0a3/src/customer_retention/stages/deployment/model_registry.py +182 -0
  226. churnkit-0.75.0a3/src/customer_retention/stages/deployment/retraining_trigger.py +245 -0
  227. churnkit-0.75.0a3/src/customer_retention/stages/features/__init__.py +73 -0
  228. churnkit-0.75.0a3/src/customer_retention/stages/features/behavioral_features.py +266 -0
  229. churnkit-0.75.0a3/src/customer_retention/stages/features/customer_segmentation.py +505 -0
  230. churnkit-0.75.0a3/src/customer_retention/stages/features/feature_definitions.py +265 -0
  231. churnkit-0.75.0a3/src/customer_retention/stages/features/feature_engineer.py +551 -0
  232. churnkit-0.75.0a3/src/customer_retention/stages/features/feature_manifest.py +340 -0
  233. churnkit-0.75.0a3/src/customer_retention/stages/features/feature_selector.py +239 -0
  234. churnkit-0.75.0a3/src/customer_retention/stages/features/interaction_features.py +160 -0
  235. churnkit-0.75.0a3/src/customer_retention/stages/features/temporal_features.py +243 -0
  236. churnkit-0.75.0a3/src/customer_retention/stages/ingestion/__init__.py +9 -0
  237. churnkit-0.75.0a3/src/customer_retention/stages/ingestion/load_result.py +32 -0
  238. churnkit-0.75.0a3/src/customer_retention/stages/ingestion/loaders.py +195 -0
  239. churnkit-0.75.0a3/src/customer_retention/stages/ingestion/source_registry.py +130 -0
  240. churnkit-0.75.0a3/src/customer_retention/stages/modeling/__init__.py +31 -0
  241. churnkit-0.75.0a3/src/customer_retention/stages/modeling/baseline_trainer.py +139 -0
  242. churnkit-0.75.0a3/src/customer_retention/stages/modeling/cross_validator.py +125 -0
  243. churnkit-0.75.0a3/src/customer_retention/stages/modeling/data_splitter.py +205 -0
  244. churnkit-0.75.0a3/src/customer_retention/stages/modeling/feature_scaler.py +99 -0
  245. churnkit-0.75.0a3/src/customer_retention/stages/modeling/hyperparameter_tuner.py +107 -0
  246. churnkit-0.75.0a3/src/customer_retention/stages/modeling/imbalance_handler.py +282 -0
  247. churnkit-0.75.0a3/src/customer_retention/stages/modeling/mlflow_logger.py +95 -0
  248. churnkit-0.75.0a3/src/customer_retention/stages/modeling/model_comparator.py +149 -0
  249. churnkit-0.75.0a3/src/customer_retention/stages/modeling/model_evaluator.py +138 -0
  250. churnkit-0.75.0a3/src/customer_retention/stages/modeling/threshold_optimizer.py +131 -0
  251. churnkit-0.75.0a3/src/customer_retention/stages/monitoring/__init__.py +37 -0
  252. churnkit-0.75.0a3/src/customer_retention/stages/monitoring/alert_manager.py +328 -0
  253. churnkit-0.75.0a3/src/customer_retention/stages/monitoring/drift_detector.py +201 -0
  254. churnkit-0.75.0a3/src/customer_retention/stages/monitoring/performance_monitor.py +242 -0
  255. churnkit-0.75.0a3/src/customer_retention/stages/preprocessing/__init__.py +5 -0
  256. churnkit-0.75.0a3/src/customer_retention/stages/preprocessing/transformer_manager.py +284 -0
  257. churnkit-0.75.0a3/src/customer_retention/stages/profiling/__init__.py +256 -0
  258. churnkit-0.75.0a3/src/customer_retention/stages/profiling/categorical_distribution.py +269 -0
  259. churnkit-0.75.0a3/src/customer_retention/stages/profiling/categorical_target_analyzer.py +274 -0
  260. churnkit-0.75.0a3/src/customer_retention/stages/profiling/column_profiler.py +527 -0
  261. churnkit-0.75.0a3/src/customer_retention/stages/profiling/distribution_analysis.py +483 -0
  262. churnkit-0.75.0a3/src/customer_retention/stages/profiling/drift_detector.py +310 -0
  263. churnkit-0.75.0a3/src/customer_retention/stages/profiling/feature_capacity.py +507 -0
  264. churnkit-0.75.0a3/src/customer_retention/stages/profiling/pattern_analysis_config.py +513 -0
  265. churnkit-0.75.0a3/src/customer_retention/stages/profiling/profile_result.py +212 -0
  266. churnkit-0.75.0a3/src/customer_retention/stages/profiling/quality_checks.py +1632 -0
  267. churnkit-0.75.0a3/src/customer_retention/stages/profiling/relationship_detector.py +256 -0
  268. churnkit-0.75.0a3/src/customer_retention/stages/profiling/relationship_recommender.py +454 -0
  269. churnkit-0.75.0a3/src/customer_retention/stages/profiling/report_generator.py +520 -0
  270. churnkit-0.75.0a3/src/customer_retention/stages/profiling/scd_analyzer.py +151 -0
  271. churnkit-0.75.0a3/src/customer_retention/stages/profiling/segment_analyzer.py +632 -0
  272. churnkit-0.75.0a3/src/customer_retention/stages/profiling/segment_aware_outlier.py +265 -0
  273. churnkit-0.75.0a3/src/customer_retention/stages/profiling/target_level_analyzer.py +217 -0
  274. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_analyzer.py +388 -0
  275. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_coverage.py +488 -0
  276. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_feature_analyzer.py +692 -0
  277. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_feature_engineer.py +703 -0
  278. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_pattern_analyzer.py +636 -0
  279. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_quality_checks.py +278 -0
  280. churnkit-0.75.0a3/src/customer_retention/stages/profiling/temporal_target_analyzer.py +241 -0
  281. churnkit-0.75.0a3/src/customer_retention/stages/profiling/text_embedder.py +87 -0
  282. churnkit-0.75.0a3/src/customer_retention/stages/profiling/text_processor.py +115 -0
  283. churnkit-0.75.0a3/src/customer_retention/stages/profiling/text_reducer.py +60 -0
  284. churnkit-0.75.0a3/src/customer_retention/stages/profiling/time_series_profiler.py +303 -0
  285. churnkit-0.75.0a3/src/customer_retention/stages/profiling/time_window_aggregator.py +376 -0
  286. churnkit-0.75.0a3/src/customer_retention/stages/profiling/type_detector.py +382 -0
  287. churnkit-0.75.0a3/src/customer_retention/stages/profiling/window_recommendation.py +288 -0
  288. churnkit-0.75.0a3/src/customer_retention/stages/temporal/__init__.py +166 -0
  289. churnkit-0.75.0a3/src/customer_retention/stages/temporal/access_guard.py +180 -0
  290. churnkit-0.75.0a3/src/customer_retention/stages/temporal/cutoff_analyzer.py +235 -0
  291. churnkit-0.75.0a3/src/customer_retention/stages/temporal/data_preparer.py +178 -0
  292. churnkit-0.75.0a3/src/customer_retention/stages/temporal/point_in_time_join.py +134 -0
  293. churnkit-0.75.0a3/src/customer_retention/stages/temporal/point_in_time_registry.py +148 -0
  294. churnkit-0.75.0a3/src/customer_retention/stages/temporal/scenario_detector.py +163 -0
  295. churnkit-0.75.0a3/src/customer_retention/stages/temporal/snapshot_manager.py +259 -0
  296. churnkit-0.75.0a3/src/customer_retention/stages/temporal/synthetic_coordinator.py +66 -0
  297. churnkit-0.75.0a3/src/customer_retention/stages/temporal/timestamp_discovery.py +531 -0
  298. churnkit-0.75.0a3/src/customer_retention/stages/temporal/timestamp_manager.py +255 -0
  299. churnkit-0.75.0a3/src/customer_retention/stages/transformation/__init__.py +13 -0
  300. churnkit-0.75.0a3/src/customer_retention/stages/transformation/binary_handler.py +85 -0
  301. churnkit-0.75.0a3/src/customer_retention/stages/transformation/categorical_encoder.py +245 -0
  302. churnkit-0.75.0a3/src/customer_retention/stages/transformation/datetime_transformer.py +97 -0
  303. churnkit-0.75.0a3/src/customer_retention/stages/transformation/numeric_transformer.py +181 -0
  304. churnkit-0.75.0a3/src/customer_retention/stages/transformation/pipeline.py +257 -0
  305. churnkit-0.75.0a3/src/customer_retention/stages/validation/__init__.py +60 -0
  306. churnkit-0.75.0a3/src/customer_retention/stages/validation/adversarial_scoring_validator.py +205 -0
  307. churnkit-0.75.0a3/src/customer_retention/stages/validation/business_sense_gate.py +173 -0
  308. churnkit-0.75.0a3/src/customer_retention/stages/validation/data_quality_gate.py +235 -0
  309. churnkit-0.75.0a3/src/customer_retention/stages/validation/data_validators.py +511 -0
  310. churnkit-0.75.0a3/src/customer_retention/stages/validation/feature_quality_gate.py +183 -0
  311. churnkit-0.75.0a3/src/customer_retention/stages/validation/gates.py +117 -0
  312. churnkit-0.75.0a3/src/customer_retention/stages/validation/leakage_gate.py +352 -0
  313. churnkit-0.75.0a3/src/customer_retention/stages/validation/model_validity_gate.py +213 -0
  314. churnkit-0.75.0a3/src/customer_retention/stages/validation/pipeline_validation_runner.py +264 -0
  315. churnkit-0.75.0a3/src/customer_retention/stages/validation/quality_scorer.py +544 -0
  316. churnkit-0.75.0a3/src/customer_retention/stages/validation/rule_generator.py +57 -0
  317. churnkit-0.75.0a3/src/customer_retention/stages/validation/scoring_pipeline_validator.py +446 -0
  318. churnkit-0.75.0a3/src/customer_retention/stages/validation/timeseries_detector.py +769 -0
  319. churnkit-0.75.0a3/src/customer_retention/transforms/__init__.py +47 -0
  320. churnkit-0.75.0a3/src/customer_retention/transforms/artifact_store.py +50 -0
  321. churnkit-0.75.0a3/src/customer_retention/transforms/executor.py +157 -0
  322. churnkit-0.75.0a3/src/customer_retention/transforms/fitted.py +92 -0
  323. churnkit-0.75.0a3/src/customer_retention/transforms/ops.py +148 -0
@@ -0,0 +1,59 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ .venv/
25
+ venv/
26
+ ENV/
27
+
28
+ # IDE
29
+ .idea/
30
+ .vscode/xs
31
+ *.swp
32
+ *.swo
33
+ .DS_Store
34
+
35
+ # Testing
36
+ .pytest_cache/
37
+ tests/.coverage
38
+ tests/htmlcov/
39
+ .tox/
40
+ .nox/
41
+
42
+ # Jupyter
43
+ .ipynb_checkpoints/
44
+
45
+ # Project specific
46
+ *.log
47
+
48
+ # Test fixtures - large datasets (not included in repo)
49
+ tests/fixtures/bank_customer_churn.csv
50
+ tests/fixtures/netflix_customer_churn.csv
51
+ #tests/fixtures/customer_emails.csv
52
+ #tests/fixtures/customer_transactions.csv
53
+ # Note: customer_retention_retail.csv IS committed (required for CI tests)
54
+
55
+ # Experiments outputs (all generated data - gitignored)
56
+ experiments/
57
+
58
+ # Generated pipelines (transient outputs, can be regenerated)
59
+ generated_pipelines/
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Hristo Aladjov
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,229 @@
1
+ Metadata-Version: 2.4
2
+ Name: churnkit
3
+ Version: 0.75.0a3
4
+ Summary: Structured ML framework for customer churn prediction -- from exploration notebooks to production pipelines, locally or on Databricks.
5
+ Project-URL: Homepage, https://github.com/aladjov/CR
6
+ Project-URL: Documentation, https://github.com/aladjov/CR/wiki
7
+ Project-URL: Repository, https://github.com/aladjov/CR
8
+ Project-URL: Issues, https://github.com/aladjov/CR/issues
9
+ Author: Customer Retention Contributors
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: churn-prediction,customer-retention,databricks,delta-lake,feast,machine-learning,mlflow,mlops
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: fsspec>=2023.0.0
25
+ Requires-Dist: ipykernel>=7.1.0
26
+ Requires-Dist: kaleido>=0.2.1
27
+ Requires-Dist: matplotlib>=3.7.0
28
+ Requires-Dist: pandas>=2.0.0
29
+ Requires-Dist: papermill>=2.4.0
30
+ Requires-Dist: plotly>=5.15.0
31
+ Requires-Dist: pyarrow>=12.0.0
32
+ Requires-Dist: pydantic>=2.0.0
33
+ Requires-Dist: pyyaml>=6.0.0
34
+ Requires-Dist: rich>=13.0.0
35
+ Requires-Dist: s3fs>=2023.0.0
36
+ Requires-Dist: scipy>=1.10.0
37
+ Requires-Dist: seaborn>=0.12.0
38
+ Requires-Dist: statsmodels>=0.14.0
39
+ Requires-Dist: tabulate>=0.9.0
40
+ Provides-Extra: all
41
+ Requires-Dist: deltalake>=0.17.0; extra == 'all'
42
+ Requires-Dist: feast>=0.40.0; extra == 'all'
43
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'all'
44
+ Requires-Dist: lightgbm>=4.0.0; extra == 'all'
45
+ Requires-Dist: mlflow>=2.10.0; extra == 'all'
46
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'all'
47
+ Requires-Dist: sentence-transformers>=2.7.0; extra == 'all'
48
+ Requires-Dist: xgboost>=2.0.0; extra == 'all'
49
+ Provides-Extra: all-shap
50
+ Requires-Dist: deltalake>=0.17.0; extra == 'all-shap'
51
+ Requires-Dist: feast>=0.40.0; extra == 'all-shap'
52
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'all-shap'
53
+ Requires-Dist: lightgbm>=4.0.0; extra == 'all-shap'
54
+ Requires-Dist: llvmlite<0.46.0,>=0.43.0; (python_version < '3.11') and extra == 'all-shap'
55
+ Requires-Dist: llvmlite>=0.46.0; (python_version >= '3.11') and extra == 'all-shap'
56
+ Requires-Dist: mlflow>=2.10.0; extra == 'all-shap'
57
+ Requires-Dist: numba<0.63.0,>=0.59.0; (python_version < '3.11') and extra == 'all-shap'
58
+ Requires-Dist: numba>=0.63.0; (python_version >= '3.11') and extra == 'all-shap'
59
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'all-shap'
60
+ Requires-Dist: sentence-transformers>=2.7.0; extra == 'all-shap'
61
+ Requires-Dist: shap<0.50.0,>=0.44.0; (python_version < '3.11') and extra == 'all-shap'
62
+ Requires-Dist: shap>=0.50.0; (python_version >= '3.11') and extra == 'all-shap'
63
+ Requires-Dist: xgboost>=2.0.0; extra == 'all-shap'
64
+ Provides-Extra: delta
65
+ Requires-Dist: deltalake>=0.17.0; extra == 'delta'
66
+ Provides-Extra: dev
67
+ Requires-Dist: jinja2>=3.0.0; extra == 'dev'
68
+ Requires-Dist: nbconvert>=7.0.0; extra == 'dev'
69
+ Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
70
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
71
+ Requires-Dist: pytest-timeout>=2.2.0; extra == 'dev'
72
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
73
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
74
+ Provides-Extra: ml
75
+ Requires-Dist: deltalake>=0.17.0; extra == 'ml'
76
+ Requires-Dist: feast>=0.40.0; extra == 'ml'
77
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'ml'
78
+ Requires-Dist: lightgbm>=4.0.0; extra == 'ml'
79
+ Requires-Dist: mlflow>=2.10.0; extra == 'ml'
80
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'ml'
81
+ Requires-Dist: xgboost>=2.0.0; extra == 'ml'
82
+ Provides-Extra: ml-cpu
83
+ Requires-Dist: deltalake>=0.17.0; extra == 'ml-cpu'
84
+ Requires-Dist: feast>=0.40.0; extra == 'ml-cpu'
85
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'ml-cpu'
86
+ Requires-Dist: lightgbm>=4.0.0; extra == 'ml-cpu'
87
+ Requires-Dist: mlflow>=2.10.0; extra == 'ml-cpu'
88
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'ml-cpu'
89
+ Requires-Dist: torch>=2.2.0; extra == 'ml-cpu'
90
+ Requires-Dist: torchvision>=0.17.0; extra == 'ml-cpu'
91
+ Requires-Dist: xgboost>=2.0.0; extra == 'ml-cpu'
92
+ Provides-Extra: ml-cuda
93
+ Requires-Dist: deltalake>=0.17.0; extra == 'ml-cuda'
94
+ Requires-Dist: feast>=0.40.0; extra == 'ml-cuda'
95
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'ml-cuda'
96
+ Requires-Dist: lightgbm>=4.0.0; extra == 'ml-cuda'
97
+ Requires-Dist: mlflow>=2.10.0; extra == 'ml-cuda'
98
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'ml-cuda'
99
+ Requires-Dist: torch>=2.2.0; extra == 'ml-cuda'
100
+ Requires-Dist: torchvision>=0.17.0; extra == 'ml-cuda'
101
+ Requires-Dist: xgboost>=2.0.0; extra == 'ml-cuda'
102
+ Provides-Extra: ml-shap
103
+ Requires-Dist: deltalake>=0.17.0; extra == 'ml-shap'
104
+ Requires-Dist: feast>=0.40.0; extra == 'ml-shap'
105
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'ml-shap'
106
+ Requires-Dist: lightgbm>=4.0.0; extra == 'ml-shap'
107
+ Requires-Dist: llvmlite<0.46.0,>=0.43.0; (python_version < '3.11') and extra == 'ml-shap'
108
+ Requires-Dist: llvmlite>=0.46.0; (python_version >= '3.11') and extra == 'ml-shap'
109
+ Requires-Dist: mlflow>=2.10.0; extra == 'ml-shap'
110
+ Requires-Dist: numba<0.63.0,>=0.59.0; (python_version < '3.11') and extra == 'ml-shap'
111
+ Requires-Dist: numba>=0.63.0; (python_version >= '3.11') and extra == 'ml-shap'
112
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'ml-shap'
113
+ Requires-Dist: shap<0.50.0,>=0.44.0; (python_version < '3.11') and extra == 'ml-shap'
114
+ Requires-Dist: shap>=0.50.0; (python_version >= '3.11') and extra == 'ml-shap'
115
+ Requires-Dist: xgboost>=2.0.0; extra == 'ml-shap'
116
+ Provides-Extra: ml-shap-intel
117
+ Requires-Dist: deltalake>=0.17.0; extra == 'ml-shap-intel'
118
+ Requires-Dist: feast>=0.40.0; extra == 'ml-shap-intel'
119
+ Requires-Dist: imbalanced-learn>=0.12.0; extra == 'ml-shap-intel'
120
+ Requires-Dist: lightgbm>=4.0.0; extra == 'ml-shap-intel'
121
+ Requires-Dist: llvmlite<0.46.0,>=0.43.0; extra == 'ml-shap-intel'
122
+ Requires-Dist: mlflow>=2.10.0; extra == 'ml-shap-intel'
123
+ Requires-Dist: numba<0.63.0,>=0.59.0; extra == 'ml-shap-intel'
124
+ Requires-Dist: scikit-learn>=1.3.0; extra == 'ml-shap-intel'
125
+ Requires-Dist: shap<0.50.0,>=0.44.0; extra == 'ml-shap-intel'
126
+ Requires-Dist: xgboost>=2.0.0; extra == 'ml-shap-intel'
127
+ Provides-Extra: text
128
+ Requires-Dist: sentence-transformers>=2.7.0; extra == 'text'
129
+ Description-Content-Type: text/markdown
130
+
131
+ # Customer Retention ML Framework
132
+ A structured backbone for the messy, iterative reality of ML model development. Exploration and production deployment are treated as parts of the same process -- not separate phases -- reflecting how data science actually works: you explore, decide, build, evaluate, learn something new, and circle back.
133
+
134
+ Handles both entity-level and event-level datasets. Experiments and production can share the same tables without copying data (Delta Lake), features are served consistently across training and inference (Feast / Feature Store), and every experiment is tracked and reproducible (MLflow). Runs locally or deploys to Databricks.
135
+
136
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
137
+ [![License](https://img.shields.io/badge/License-Apache_2.0-green.svg)](LICENSE)
138
+ [![CI](https://github.com/aladjov/CR/actions/workflows/ci.yaml/badge.svg)](https://github.com/aladjov/CR/actions/workflows/ci.yaml)
139
+ [![codecov](https://codecov.io/gh/aladjov/CR/branch/master/graph/badge.svg)](https://codecov.io/gh/aladjov/CR)
140
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
141
+ [![Typed](https://img.shields.io/badge/typed-Pydantic-blue)](https://docs.pydantic.dev/)
142
+ [![MLflow](https://img.shields.io/badge/MLflow-integrated-0194E2?logo=mlflow)](https://mlflow.org/)
143
+ [![Databricks](https://img.shields.io/badge/Databricks-compatible-FF3621?logo=databricks)](https://databricks.com/)
144
+
145
+ ---
146
+
147
+ ## Why This Exists
148
+
149
+ Most ML tutorials jump straight to `model.fit()`. Real projects fail earlier -- in data issues you didn't notice, leakage you didn't check for, or feature choices you can't explain to your stakeholders three months later. This framework tries to close that gap.
150
+
151
+ It serves two audiences:
152
+
153
+ 1. **If you're learning**, the notebooks walk through a realistic end-to-end process and explain the reasoning behind each step. Why does a 93-day median inter-event gap rule out short aggregation windows? Why might the model that wins validation degrade in production? The goal is to build intuition for the decisions that don't appear in textbooks.
154
+
155
+ 2. **If you're experienced**, you can `pip install`, point to a new dataset, and get an opinionated exploration scaffold. The output is loosely-coupled production code (Bronze / Silver / Gold) with the provenance of every decision captured in self-contained HTML documentation -- useful when you need to explain *why* the pipeline does what it does.
156
+
157
+ ### The approach
158
+
159
+ - **Exploration is a first-class concept.** The framework records what it found in the data, what it recommends, and why -- in versioned YAML artifacts. Each downstream transformation traces back to a specific observation in a specific notebook, so nothing happens without a documented reason.
160
+ - **Experimentation is version-controlled end to end.** Not just code and features, but the actual data observations and actions taken on them can be frozen in time together. Delta tables support time-travel on live production datasets, so you can always go back to what the data looked like when a decision was made.
161
+ - **Iteration is the default.** Model feedback -- feature importances, error analysis, drift signals -- feeds back into the next exploration cycle. The framework tracks iteration lineage rather than treating each experiment as independent.
162
+
163
+ ---
164
+
165
+ ## Quick Start
166
+
167
+ ### 1. Install
168
+
169
+ ```bash
170
+ pip install "churnkit[ml]"
171
+ ```
172
+
173
+ ### 2. Bootstrap notebooks into your project
174
+
175
+ ```bash
176
+ churnkit-init --output ./my_project
177
+ cd my_project
178
+ ```
179
+
180
+ ### 3. Point to your data
181
+
182
+ Open `exploration_notebooks/01_data_discovery.ipynb` and set the data path:
183
+
184
+ ```python
185
+ DATA_PATH = "experiments/data/your_file.csv" # csv, parquet, or delta
186
+ ```
187
+
188
+ ### 4. Run
189
+
190
+ Execute cells sequentially. The framework auto-detects column types, data granularity (entity vs event-level), text columns, and temporal patterns -- then routes you through the relevant notebooks.
191
+
192
+ Findings, recommendations, and production pipeline specs are generated as you go.
193
+
194
+ ---
195
+
196
+ ## Learn More
197
+
198
+ Detailed documentation lives in the [Wiki](https://github.com/aladjov/CR/wiki):
199
+
200
+ | Topic | Wiki Page |
201
+ |-------|-----------|
202
+ | Installation options & environment setup | [Getting Started](https://github.com/aladjov/CR/wiki/Getting-Started) |
203
+ | Medallion architecture & system design | [Architecture](https://github.com/aladjov/CR/wiki/Architecture) |
204
+ | Notebook workflow & iteration tracking | [Exploration Loop](https://github.com/aladjov/CR/wiki/Exploration-Loop) |
205
+ | Leakage-safe temporal data preparation | [Temporal Framework](https://github.com/aladjov/CR/wiki/Temporal-Framework) |
206
+ | Feast & Databricks feature management | [Feature Store](https://github.com/aladjov/CR/wiki/Feature-Store) |
207
+ | Local execution with Feast + MLFlow | [Local Track](https://github.com/aladjov/CR/wiki/Local-Track) |
208
+ | Databricks with Unity Catalog + Delta Lake | [Databricks Track](https://github.com/aladjov/CR/wiki/Databricks-Track) |
209
+
210
+ ### Tutorials
211
+
212
+ | Tutorial | What it walks through |
213
+ |----------|-----------------------|
214
+ | [Retail Customer Retention](https://github.com/aladjov/CR/wiki/Tutorial-Retail-Churn) | Entity-level data: point-in-time snapshots, quality assessment, baseline models, and a production scoring check that reveals how distribution drift affects different model families -- [browse HTML](https://aladjov.github.io/CR/tutorial/retail-churn/) |
215
+ | [Customer Email Engagement](https://github.com/aladjov/CR/wiki/Tutorial-Customer-Emails) | Event-level data: temporal window selection driven by inter-event cadence, aggregating 83K email events into customer-level features, and tracing each decision from data observation to production pipeline -- [browse HTML](https://aladjov.github.io/CR/tutorial/customer-emails/) |
216
+ | [Bank Customer Churn](https://github.com/aladjov/CR/wiki/Tutorial-Bank-Churn) | Dataset setup instructions |
217
+ | [Netflix Churn](https://github.com/aladjov/CR/wiki/Tutorial-Netflix-Churn) | Dataset setup instructions |
218
+
219
+ ### [Acknowledgments](https://github.com/aladjov/CR/wiki/Acknowledgments)
220
+
221
+ ---
222
+
223
+ ## Contributing
224
+
225
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
226
+
227
+ ## License
228
+
229
+ Apache 2.0 -- See [LICENSE](LICENSE) for details.
@@ -0,0 +1,99 @@
1
+ # Customer Retention ML Framework
2
+ A structured backbone for the messy, iterative reality of ML model development. Exploration and production deployment are treated as parts of the same process -- not separate phases -- reflecting how data science actually works: you explore, decide, build, evaluate, learn something new, and circle back.
3
+
4
+ Handles both entity-level and event-level datasets. Experiments and production can share the same tables without copying data (Delta Lake), features are served consistently across training and inference (Feast / Feature Store), and every experiment is tracked and reproducible (MLflow). Runs locally or deploys to Databricks.
5
+
6
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
7
+ [![License](https://img.shields.io/badge/License-Apache_2.0-green.svg)](LICENSE)
8
+ [![CI](https://github.com/aladjov/CR/actions/workflows/ci.yaml/badge.svg)](https://github.com/aladjov/CR/actions/workflows/ci.yaml)
9
+ [![codecov](https://codecov.io/gh/aladjov/CR/branch/master/graph/badge.svg)](https://codecov.io/gh/aladjov/CR)
10
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
11
+ [![Typed](https://img.shields.io/badge/typed-Pydantic-blue)](https://docs.pydantic.dev/)
12
+ [![MLflow](https://img.shields.io/badge/MLflow-integrated-0194E2?logo=mlflow)](https://mlflow.org/)
13
+ [![Databricks](https://img.shields.io/badge/Databricks-compatible-FF3621?logo=databricks)](https://databricks.com/)
14
+
15
+ ---
16
+
17
+ ## Why This Exists
18
+
19
+ Most ML tutorials jump straight to `model.fit()`. Real projects fail earlier -- in data issues you didn't notice, leakage you didn't check for, or feature choices you can't explain to your stakeholders three months later. This framework tries to close that gap.
20
+
21
+ It serves two audiences:
22
+
23
+ 1. **If you're learning**, the notebooks walk through a realistic end-to-end process and explain the reasoning behind each step. Why does a 93-day median inter-event gap rule out short aggregation windows? Why might the model that wins validation degrade in production? The goal is to build intuition for the decisions that don't appear in textbooks.
24
+
25
+ 2. **If you're experienced**, you can `pip install`, point to a new dataset, and get an opinionated exploration scaffold. The output is loosely-coupled production code (Bronze / Silver / Gold) with the provenance of every decision captured in self-contained HTML documentation -- useful when you need to explain *why* the pipeline does what it does.
26
+
27
+ ### The approach
28
+
29
+ - **Exploration is a first-class concept.** The framework records what it found in the data, what it recommends, and why -- in versioned YAML artifacts. Each downstream transformation traces back to a specific observation in a specific notebook, so nothing happens without a documented reason.
30
+ - **Experimentation is version-controlled end to end.** Not just code and features, but the actual data observations and actions taken on them can be frozen in time together. Delta tables support time-travel on live production datasets, so you can always go back to what the data looked like when a decision was made.
31
+ - **Iteration is the default.** Model feedback -- feature importances, error analysis, drift signals -- feeds back into the next exploration cycle. The framework tracks iteration lineage rather than treating each experiment as independent.
32
+
33
+ ---
34
+
35
+ ## Quick Start
36
+
37
+ ### 1. Install
38
+
39
+ ```bash
40
+ pip install "churnkit[ml]"
41
+ ```
42
+
43
+ ### 2. Bootstrap notebooks into your project
44
+
45
+ ```bash
46
+ churnkit-init --output ./my_project
47
+ cd my_project
48
+ ```
49
+
50
+ ### 3. Point to your data
51
+
52
+ Open `exploration_notebooks/01_data_discovery.ipynb` and set the data path:
53
+
54
+ ```python
55
+ DATA_PATH = "experiments/data/your_file.csv" # csv, parquet, or delta
56
+ ```
57
+
58
+ ### 4. Run
59
+
60
+ Execute cells sequentially. The framework auto-detects column types, data granularity (entity vs event-level), text columns, and temporal patterns -- then routes you through the relevant notebooks.
61
+
62
+ Findings, recommendations, and production pipeline specs are generated as you go.
63
+
64
+ ---
65
+
66
+ ## Learn More
67
+
68
+ Detailed documentation lives in the [Wiki](https://github.com/aladjov/CR/wiki):
69
+
70
+ | Topic | Wiki Page |
71
+ |-------|-----------|
72
+ | Installation options & environment setup | [Getting Started](https://github.com/aladjov/CR/wiki/Getting-Started) |
73
+ | Medallion architecture & system design | [Architecture](https://github.com/aladjov/CR/wiki/Architecture) |
74
+ | Notebook workflow & iteration tracking | [Exploration Loop](https://github.com/aladjov/CR/wiki/Exploration-Loop) |
75
+ | Leakage-safe temporal data preparation | [Temporal Framework](https://github.com/aladjov/CR/wiki/Temporal-Framework) |
76
+ | Feast & Databricks feature management | [Feature Store](https://github.com/aladjov/CR/wiki/Feature-Store) |
77
+ | Local execution with Feast + MLFlow | [Local Track](https://github.com/aladjov/CR/wiki/Local-Track) |
78
+ | Databricks with Unity Catalog + Delta Lake | [Databricks Track](https://github.com/aladjov/CR/wiki/Databricks-Track) |
79
+
80
+ ### Tutorials
81
+
82
+ | Tutorial | What it walks through |
83
+ |----------|-----------------------|
84
+ | [Retail Customer Retention](https://github.com/aladjov/CR/wiki/Tutorial-Retail-Churn) | Entity-level data: point-in-time snapshots, quality assessment, baseline models, and a production scoring check that reveals how distribution drift affects different model families -- [browse HTML](https://aladjov.github.io/CR/tutorial/retail-churn/) |
85
+ | [Customer Email Engagement](https://github.com/aladjov/CR/wiki/Tutorial-Customer-Emails) | Event-level data: temporal window selection driven by inter-event cadence, aggregating 83K email events into customer-level features, and tracing each decision from data observation to production pipeline -- [browse HTML](https://aladjov.github.io/CR/tutorial/customer-emails/) |
86
+ | [Bank Customer Churn](https://github.com/aladjov/CR/wiki/Tutorial-Bank-Churn) | Dataset setup instructions |
87
+ | [Netflix Churn](https://github.com/aladjov/CR/wiki/Tutorial-Netflix-Churn) | Dataset setup instructions |
88
+
89
+ ### [Acknowledgments](https://github.com/aladjov/CR/wiki/Acknowledgments)
90
+
91
+ ---
92
+
93
+ ## Contributing
94
+
95
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
96
+
97
+ ## License
98
+
99
+ Apache 2.0 -- See [LICENSE](LICENSE) for details.
File without changes