Skip to main content

Model-agnostic Probabilistic Machine Learning Reserving

Project description

MLReserving

A machine learning-based reserving model for (longitudinal data) insurance claims.

Installation

pip install mlreserving

Usage

from mlreserving import MLReserving
import pandas as pd

# Create your triangle data
# Load the dataset
url = "https://raw.githubusercontent.com/Techtonique/datasets/refs/heads/main/tabular/triangle/raa.csv"
data = pd.read_csv(url)

# Initialize and fit the model
model = MLReserving(model=mdl,
                    level=80,  # 80% confidence level
                    random_state=42)
model.fit(data)

# Make predictions
result = model.predict()

# Get IBNR, latest, and ultimate values
ibnr = model.get_ibnr()
latest = model.get_latest()
ultimate = model.get_ultimate()

Features

  • Machine learning based reserving model
  • Support for prediction intervals
  • Flexible model selection
  • Handles both continuous and categorical features

License

BSD Clause Clear License

Project details


Download files

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

Source Distribution

mlreserving-0.3.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

mlreserving-0.3.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file mlreserving-0.3.0.tar.gz.

File metadata

  • Download URL: mlreserving-0.3.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mlreserving-0.3.0.tar.gz
Algorithm Hash digest
SHA256 aaf706654dace06e78e65b6942da62b2e286a651446d97f87320c627c012b987
MD5 605b794d9ba088ecd516e1c3b5763719
BLAKE2b-256 d2154a9b34b28556005833b77ae1189ad880c91b8a964b036d9e8c55bea3539d

See more details on using hashes here.

File details

Details for the file mlreserving-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mlreserving-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mlreserving-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9472df9d34839ca549c83911e6cc31b5916ace208666cf6f57891fc5d7a734c
MD5 ff59b5b082c00f7cb1e126e68cb614d6
BLAKE2b-256 53a78aecafb42d1f903a3990d8f62fb6b6fc738ff86d818dfbb5e81c561b209f

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