Synergist / chainladder-python

Actuarial reserving in Python

Home Page:https://chainladder-python.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chainladder (python)

PyPI version Build Status Documentation Status codecov

chainladder - Property and Casualty Loss Reserving in Python

This package gets inpiration from the popular R ChainLadder package.

A goal of this package is to be minimalistic in needing its own API. Think in pandas for data manipulation and scikit-learn for model construction. The idea here is to allow an actuary already versed in these tools to pick up this package with ease. Save your mental energy for actuarial work.

Documentation

Please visit the Documentation page for examples, how-tos, and source code documentation.

Tutorials

Tutorial notebooks are available for download here.

Have a question?

Feel free to reach out on Gitter.

Want to contribute?

Check out our contributing guidelines.

Installation

To install using pip: pip install chainladder

Alternatively, install directly from github: pip install git+https://github.com/casact/chainladder-python/

Note: This package requires Python 3.5 and later, numpy 1.12.0 and later, pandas 0.23.0 and later, scikit-learn 0.18.0 and later.

GPU support

New in version 0.5.0 - chainladder now supports CUDA-based GPU computations by way of CuPY. You can now swap array_backend between numpy and cupy to switch between CPU and GPU-based computations.

Array backends can be set globally:

import chainladder as cl
cl.array_backend('cupy')

Alternatively, they can be set per Triangle instance.

cl.Triangle(..., array_backend='cupy')

Note you must have a CUDA-enabled graphics card and CuPY installed to use the GPU backend.

About

Actuarial reserving in Python

https://chainladder-python.readthedocs.io/en/latest/

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%