Skip to main content

Reusable modelling, pricing, governance, and reporting utilities.

Project description

Ins-Pricing Overview

This repository contains risk modeling and optimization notebooks, scripts, and a reusable training framework. The main module is ins_pricing/modelling/bayesopt.

Top-level structure

  • Auto Info/: vehicle info crawling, preprocessing, and embedding experiments
  • GLM and LGB/: GLM/LightGBM modeling experiments
  • OpenAI/: OpenAI notebook prototypes
  • Python Code/: runnable scripts and utilities
  • others/: temporary or miscellaneous notebooks
  • ins_pricing/: reusable training framework and CLI tools (BayesOpt subpackage)
  • user_packages legacy/: historical snapshot

Note: ins_pricing/modelling/demo/ is kept in the repo only and is not shipped in the PyPI package.

Quickstart

Run the following commands from the repo root:

python -m venv .venv
source .venv/bin/activate  # Windows: .\\.venv\\Scripts\\activate
pip install pandas scikit-learn lightgbm seaborn matplotlib

Start notebooks:

jupyter lab

BayesOpt entry points

  • CLI batch training: python ins_pricing/modelling/BayesOpt_entry.py --config-json <path>
  • Incremental training: python ins_pricing/modelling/BayesOpt_incremental.py --config-json <path>
  • Python API: from ins_pricing.modelling import BayesOptModel

Tests

pytest -q

Data and outputs

  • Put shared data under data/ (create it if needed).
  • Training outputs are written to plot/, Results/, and model/ by default.
  • Keep secrets and large files outside the repo and use environment variables or .env.

Project details


Release history Release notifications | RSS feed

This version

0.1.6

Download files

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

Source Distribution

ins_pricing-0.1.6.tar.gz (823.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ins_pricing-0.1.6-py3-none-any.whl (912.7 kB view details)

Uploaded Python 3

File details

Details for the file ins_pricing-0.1.6.tar.gz.

File metadata

  • Download URL: ins_pricing-0.1.6.tar.gz
  • Upload date:
  • Size: 823.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for ins_pricing-0.1.6.tar.gz
Algorithm Hash digest
SHA256 12cc1fe248890b712ef082826f3f3436f9085580fb7f66a39c7159de17cd80ac
MD5 3b5135633b2b0ca76eb98fbc42430fd2
BLAKE2b-256 e2fe862d0a9fb5c44cbc5175f66a4d4f3c7f758c1779f7a84eddd7dd2848b422

See more details on using hashes here.

File details

Details for the file ins_pricing-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ins_pricing-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 912.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for ins_pricing-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e1375207d044d2b8b1c9238e173a868c6c9e6ea4eae3e2a711765951ac252346
MD5 e45e076a2f7588dbe3d2ecd6e403b9a9
BLAKE2b-256 4f979522beff0fb72414dee7ef21395ff7d7fada8b1695e72858bacadfb1f3ee

See more details on using hashes here.

Supported by

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