ins-pricing 0.4.4__py3-none-any.whl → 0.4.5__py3-none-any.whl
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.
- ins_pricing/README.md +66 -74
- ins_pricing/cli/BayesOpt_incremental.py +904 -904
- ins_pricing/cli/bayesopt_entry_runner.py +1442 -1442
- ins_pricing/frontend/README.md +573 -419
- ins_pricing/frontend/config_builder.py +1 -0
- ins_pricing/modelling/README.md +67 -0
- ins_pricing/modelling/core/bayesopt/README.md +59 -0
- ins_pricing/modelling/core/bayesopt/config_preprocess.py +12 -0
- ins_pricing/modelling/core/bayesopt/core.py +3 -1
- ins_pricing/setup.py +1 -1
- {ins_pricing-0.4.4.dist-info → ins_pricing-0.4.5.dist-info}/METADATA +182 -162
- {ins_pricing-0.4.4.dist-info → ins_pricing-0.4.5.dist-info}/RECORD +14 -21
- ins_pricing/CHANGELOG.md +0 -272
- ins_pricing/RELEASE_NOTES_0.2.8.md +0 -344
- ins_pricing/docs/LOSS_FUNCTIONS.md +0 -78
- ins_pricing/docs/modelling/BayesOpt_USAGE.md +0 -945
- ins_pricing/docs/modelling/README.md +0 -34
- ins_pricing/frontend/QUICKSTART.md +0 -152
- ins_pricing/modelling/core/bayesopt/PHASE2_REFACTORING_SUMMARY.md +0 -449
- ins_pricing/modelling/core/bayesopt/PHASE3_REFACTORING_SUMMARY.md +0 -406
- ins_pricing/modelling/core/bayesopt/REFACTORING_SUMMARY.md +0 -247
- {ins_pricing-0.4.4.dist-info → ins_pricing-0.4.5.dist-info}/WHEEL +0 -0
- {ins_pricing-0.4.4.dist-info → ins_pricing-0.4.5.dist-info}/top_level.txt +0 -0
ins_pricing/README.md
CHANGED
|
@@ -1,74 +1,66 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Distribution name:
|
|
4
|
-
|
|
5
|
-
Reusable modelling and pricing utilities organized as a small toolbox with clear boundaries
|
|
6
|
-
between modelling, production, governance, and reporting.
|
|
7
|
-
|
|
8
|
-
## Architecture
|
|
9
|
-
|
|
10
|
-
- `cli/`: CLI entry points
|
|
11
|
-
- `modelling/`
|
|
12
|
-
- `core/`: BayesOpt training core (GLM / XGB / ResNet / FT / GNN).
|
|
13
|
-
- `plotting/`: model-agnostic curves and geo visualizations.
|
|
14
|
-
- `explain/`: permutation, gradients, and SHAP helpers.
|
|
15
|
-
- `
|
|
16
|
-
- `
|
|
17
|
-
- `
|
|
18
|
-
- `
|
|
19
|
-
- `
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- `from ins_pricing.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Legacy import paths continue to work:
|
|
69
|
-
|
|
70
|
-
- `import user_packages`
|
|
71
|
-
- `import user_packages.bayesopt`
|
|
72
|
-
- `import user_packages.plotting`
|
|
73
|
-
- `import user_packages.explain`
|
|
74
|
-
- `import user_packages.BayesOpt`
|
|
1
|
+
# ins_pricing
|
|
2
|
+
|
|
3
|
+
Distribution name: ins_pricing (import package is `ins_pricing`; legacy alias `user_packages` still works).
|
|
4
|
+
|
|
5
|
+
Reusable modelling and pricing utilities organized as a small toolbox with clear boundaries
|
|
6
|
+
between modelling, production, governance, and reporting.
|
|
7
|
+
|
|
8
|
+
## Architecture
|
|
9
|
+
|
|
10
|
+
- `cli/`: CLI entry points and shared utilities.
|
|
11
|
+
- `modelling/`
|
|
12
|
+
- `core/`: BayesOpt training core (GLM / XGB / ResNet / FT / GNN).
|
|
13
|
+
- `plotting/`: model-agnostic curves and geo visualizations.
|
|
14
|
+
- `explain/`: permutation, gradients, and SHAP helpers.
|
|
15
|
+
- `examples/`: demo configs and notebooks (repo only; not packaged).
|
|
16
|
+
- `pricing/`: factor tables, calibration, exposure, monitoring.
|
|
17
|
+
- `production/`: scoring, metrics, drift/PSI.
|
|
18
|
+
- `governance/`: registry, approval, audit workflows.
|
|
19
|
+
- `reporting/`: report builder and scheduler.
|
|
20
|
+
|
|
21
|
+
## Call flow (typical)
|
|
22
|
+
|
|
23
|
+
1. Model training
|
|
24
|
+
- Python API: `from ins_pricing.modelling import BayesOptModel`
|
|
25
|
+
- CLI: `python ins_pricing/cli/BayesOpt_entry.py --config-json ...`
|
|
26
|
+
2. Evaluation and visualization
|
|
27
|
+
- Curves: `from ins_pricing.plotting import curves`
|
|
28
|
+
- Importance: `from ins_pricing.plotting import importance`
|
|
29
|
+
- Geo: `from ins_pricing.plotting import geo`
|
|
30
|
+
3. Explainability
|
|
31
|
+
- `from ins_pricing.explain import permutation_importance, integrated_gradients_torch`
|
|
32
|
+
4. Pricing loop
|
|
33
|
+
- `from ins_pricing.pricing import build_factor_table, rate_premium`
|
|
34
|
+
5. Production and governance
|
|
35
|
+
- `from ins_pricing.production import batch_score, psi_report`
|
|
36
|
+
- `from ins_pricing.governance import ModelRegistry, ReleaseManager`
|
|
37
|
+
6. Reporting
|
|
38
|
+
- `from ins_pricing.reporting import build_report, write_report, schedule_daily`
|
|
39
|
+
|
|
40
|
+
## Import notes
|
|
41
|
+
|
|
42
|
+
- `ins_pricing` exposes lightweight lazy imports so that pricing/production/governance
|
|
43
|
+
can be used without installing heavy ML dependencies.
|
|
44
|
+
- Demo notebooks/configs live in the repo under `examples/` and are not shipped
|
|
45
|
+
in the PyPI package.
|
|
46
|
+
- Heavy dependencies are only required when you import or use the related modules:
|
|
47
|
+
- BayesOpt: `torch`, `optuna`, `xgboost`, etc.
|
|
48
|
+
- Explain: `torch` (gradients), `shap` (SHAP).
|
|
49
|
+
- Geo plotting on basemap: `contextily`.
|
|
50
|
+
- Plotting: `matplotlib`.
|
|
51
|
+
|
|
52
|
+
## Multi-platform and GPU notes
|
|
53
|
+
|
|
54
|
+
- Install the correct PyTorch build for your platform/GPU before installing extras.
|
|
55
|
+
- Torch Geometric requires platform-specific wheels; follow the official PyG install guide.
|
|
56
|
+
- Multi-GPU uses DDP or DataParallel where supported; Windows disables CUDA DDP.
|
|
57
|
+
|
|
58
|
+
## Backward-compatible imports
|
|
59
|
+
|
|
60
|
+
Legacy import paths continue to work:
|
|
61
|
+
|
|
62
|
+
- `import user_packages`
|
|
63
|
+
- `import user_packages.bayesopt`
|
|
64
|
+
- `import user_packages.plotting`
|
|
65
|
+
- `import user_packages.explain`
|
|
66
|
+
- `import user_packages.BayesOpt`
|