Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ body:
attributes:
label: Is your feature request aligned with the scope of the package?
description: |
The ethos governing `chainladder-python` is that it:
The ethos governing `chainladder` is that it:
1. Is an engine for triangle manipulation and reserves study. It is not a reserving system, but can be a major component in a reserving system.
2. Conforms to `pandas` and `sklearn` API styling in a strict sense. Deviations from these APIs is strongly discouraged.
options:
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- Checklists below should be completed, but do not edit any words below. -->

## Submitter's Checklist
- [ ] I have reviewed and am adhering to the standards outlined in the project [Governing Doc](https://github.com/casact/chainladder-python/blob/main/docs/library/governance.md).
- [ ] I have reviewed and am adhering to the standards outlined in the project [Governing Doc](https://github.com/casact/chainladder/blob/main/docs/library/governance.md).
- [ ] The PR subject title summarizes the changes, with one proper prefix (`[FIX]`, `[FEAT]`, `[DOCS]`, `[TST]`, `[CHORE]`, or `[BRK]`).
- [ ] I am a human (not a bot), and this PR form is written by a human.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spec0_check_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
check:
name: Check SPEC 0 support windows
runs-on: ubuntu-latest
if: github.repository == 'casact/chainladder-python' || vars.ENABLE_SPEC0_CHECK == 'true'
if: github.repository == 'casact/chainladder' || vars.ENABLE_SPEC0_CHECK == 'true'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

Expand Down
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 1. Directory Structure

```
chainladder-python/
chainladder/
├── chainladder/ # Main package
│ ├── __init__.py # Public API, package metadata
│ ├── py.typed # PEP 561 marker (ships inline type hints)
Expand Down
18 changes: 9 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
.. |License| image:: https://badgen.net/pypi/license/chainladder
:target: https://pypi.python.org/pypi/chainladder

.. |Build Status| image:: https://github.com/casact/chainladder-python/actions/workflows/pytest.yml/badge.svg
:target: https://github.com/casact/chainladder-python/actions/workflows/pytest.yml
.. |Build Status| image:: https://github.com/casact/chainladder/actions/workflows/pytest.yml/badge.svg
:target: https://github.com/casact/chainladder/actions/workflows/pytest.yml

.. |codecov io| image:: https://codecov.io/gh/casact/chainladder-python/branch/main/graphs/badge.svg
:target: https://codecov.io/github/casact/chainladder-python?branch=latest
.. |codecov io| image:: https://codecov.io/gh/casact/chainladder/branch/main/graphs/badge.svg
:target: https://codecov.io/github/casact/chainladder?branch=latest

.. |Documentation Status| image:: https://readthedocs.org/projects/chainladder-python/badge/?version=main
:target: https://chainladder-python.readthedocs.io/main/
.. |Documentation Status| image:: https://readthedocs.org/projects/chainladder/badge/?version=main
:target: https://chainladder.readthedocs.io/main/

chainladder (python)
====================
Expand Down Expand Up @@ -54,9 +54,9 @@ Documentation Site

We have a documentation website, where you can find installation instructions, tutorials, example galleries, sample datasets, API references, change log history, and more.

Visit `Chainladder-Python on Read the Docs`_.
Visit `Chainladder on Read the Docs`_.

.. _Chainladder-Python on Read the Docs: https://chainladder-python.readthedocs.io/stable/
.. _Chainladder on Read the Docs: https://chainladder.readthedocs.io/stable/

Contributors Working Group
----------------------------
Expand All @@ -71,4 +71,4 @@ Licenses
-------------------
This package is released under `Mozilla Public License 2.0`_.

.. _Mozilla Public License 2.0: https://github.com/casact/chainladder-python/blob/master/LICENSE
.. _Mozilla Public License 2.0: https://github.com/casact/chainladder/blob/master/LICENSE
2 changes: 1 addition & 1 deletion chainladder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
The chainladder-python package was built to be able to handle all of your actuarial reserving needs in python.
The chainladder package was built to be able to handle all of your actuarial reserving needs in python.
It consists of popular actuarial tools, such as triangle data manipulation, link ratios calculation, and
IBNR estimates using both deterministic and stochastic models. We build this package so you no longer have to rely
on outdated software and tools when performing actuarial pricing or reserving indications.
Expand Down
4 changes: 2 additions & 2 deletions chainladder/_config/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# passing a Dask dataframe to the Triangle constructor) emits a
# DeprecationWarning.
_DEPRECATED_BACKENDS: dict[str, str] = {
"cupy": "https://github.com/casact/chainladder-python/issues/843",
"dask": "https://github.com/casact/chainladder-python/issues/842",
"cupy": "https://github.com/casact/chainladder/issues/843",
"dask": "https://github.com/casact/chainladder/issues/842",
}


Expand Down
2 changes: 1 addition & 1 deletion chainladder/core/tests/test_triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_link_ratio_converts_zero_ratios_to_nan() -> None:
zero age-to-age ratio into NaN rather than leaving it as 0. This is an intentional
design choice to improve memory efficiency - see GH#181:

https://github.com/casact/chainladder-python/issues/181
https://github.com/casact/chainladder/issues/181

Returns
-------
Expand Down
6 changes: 3 additions & 3 deletions chainladder/development/tests/test_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_drop_valuation_without_sample_weight(genins):
must match the result of passing an all-ones sample_weight. The
unweighted fit itself must be unchanged.

https://github.com/casact/chainladder-python/issues/1619
https://github.com/casact/chainladder/issues/1619
"""
base = cl.TweedieGLM().fit(genins).ldf_.values[0, 0, 0, :4]
dropped = cl.TweedieGLM(drop_valuation="2005").fit(genins).ldf_.values[0, 0, 0, :4]
Expand Down Expand Up @@ -50,7 +50,7 @@ def test_drop_without_sample_weight(genins):
drop must take effect even when sample_weight is None, while the
unweighted fit itself is unchanged.

https://github.com/casact/chainladder-python/issues/1619
https://github.com/casact/chainladder/issues/1619
"""
base = cl.TweedieGLM().fit(genins).ldf_.values[0, 0, 0, :4]
dropped = cl.TweedieGLM(drop=("2001", 12)).fit(genins).ldf_.values[0, 0, 0, :4]
Expand Down Expand Up @@ -83,7 +83,7 @@ def test_incremental_triangle_with_empty_cells(monthly):
TweedieGLM must fit the incremental triangle, with or without
drop_valuation, the same way it fits the cumulative one.

https://github.com/casact/chainladder-python/issues/1640
https://github.com/casact/chainladder/issues/1640
"""
incremental = monthly["reportedCount"].grain("OYDQ")
cumulative = incremental.incr_to_cum()
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chainladder documentation

This folder contains everything that builds the [chainladder-python docs site](https://chainladder-python.readthedocs.io/). It is organised as a [Jupyter Book](https://jupyterbook.org/) v1.x project on top of Sphinx, with the API reference produced by `sphinx.ext.autosummary` from the package docstrings.
This folder contains everything that builds the [chainladder docs site](https://chainladder.readthedocs.io/). It is organised as a [Jupyter Book](https://jupyterbook.org/) v1.x project on top of Sphinx, with the API reference produced by `sphinx.ext.autosummary` from the package docstrings.

If you only want to read the docs, use the published site. This README is for contributors editing the docs.

Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bibtex_bibfiles:

# Information about where the book exists on the web
repository:
url: https://github.com/casact/chainladder-python # Online location of your book
url: https://github.com/casact/chainladder # Online location of your book
path_to_book: docs # Optional path to your book, relative to the repository root
branch: master # Which branch of the repository should be used when creating links (optional)

Expand Down
2 changes: 1 addition & 1 deletion docs/_ext/linkcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def linkcode_resolve(domain: str, info: dict) -> str | None:
"""

# Base path pointing to GitHub source code.
url_base: str = "https://github.com/casact/chainladder-python/blob/master/"
url_base: str = "https://github.com/casact/chainladder/blob/master/"

# Get the language information.
if domain != "py":
Expand Down
2 changes: 1 addition & 1 deletion docs/_ext/tests/test_ext_linkcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_linkcode_resolve_url_lines() -> None:
)

assert url is not None
assert url.startswith("https://github.com/casact/chainladder-python/blob/master/")
assert url.startswith("https://github.com/casact/chainladder/blob/master/")

# Extract the line numbers.
lines: str = url.split("#")[1]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"path_to_docs": "docs",
"repository_branch": "main",
"repository_url": "https://github.com/casact/chainladder-python",
"repository_url": "https://github.com/casact/chainladder",
"search_bar_text": "Search this website...",
"use_edit_page_button": False,
"use_issues_button": True,
Expand Down
2 changes: 1 addition & 1 deletion docs/friedland/chapter_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3949,7 +3949,7 @@
"environmentMetadata": {
"base_environment": "",
"dependencies": [
"-e ./chainladder-python"
"-e ./chainladder"
],
"environment_version": "5"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery/plot_triangle_from_pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"source": [
"# Read in the data\n",
"data = pd.read_csv(\n",
" r\"https://raw.githubusercontent.com/casact/chainladder-python/master/chainladder/utils/data/clrd.csv\"\n",
" r\"https://raw.githubusercontent.com/casact/chainladder/master/chainladder/utils/data/clrd.csv\"\n",
")\n",
"\n",
"# Output\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ We recommend **uv** for installing `chainladder`, but you can use any of the man
Alternatively, if you have git and want to enjoy unreleased features, you can
install directly from `Github`:

`pip install git+https://github.com/casact/chainladder-python/`
`pip install git+https://github.com/casact/chainladder/`

## Developer Installation

Expand Down
6 changes: 3 additions & 3 deletions docs/getting_started/online_sandbox/sandbox_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Time recommended: **1 hour**

You can open the sandbox tutorial in one of two ways. You may be forced to use one or another, especially if you are a company network with strict network firewall rules.

- Open in [Google Colab](https://githubtocolab.com/casact/chainladder-python/blob/master/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb) (faster, but a free Google Account is required)
- Open in [Google Colab](https://githubtocolab.com/casact/chainladder/blob/master/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb) (faster, but a free Google Account is required)

- Open in [Binder](https://mybinder.org/v2/gh/casact/chainladder-python/master?urlpath=tree/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb) (slower, no sign up required)
- Open in [Binder](https://mybinder.org/v2/gh/casact/chainladder/master?urlpath=tree/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb) (slower, no sign up required)

Just in case you want a copy of the sandbox tutorial notebook, you can download it [here](https://github.com/casact/chainladder-python/blob/master/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb).
Just in case you want a copy of the sandbox tutorial notebook, you can download it [here](https://github.com/casact/chainladder/blob/master/docs/getting_started/online_sandbox/sandbox_workbook_blank.ipynb).
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"source": [
"# Online Sandbox Tutorial\n",
"\n",
"Welcome! If you've come here to explore the capabilities of the `chainladder-python` package, you've landed in the perfect spot. This online sandbox tutorial is designed to provide you with a glimpse of the package's functionalities. \n",
"Welcome! If you've come here to explore the capabilities of the `chainladder` package, you've landed in the perfect spot. This online sandbox tutorial is designed to provide you with a glimpse of the package's functionalities. \n",
"\n",
"We recommend setting aside about **one hour** to complete it.\n",
"\n",
"Got Stuck? Click [here](https://nbviewer.org/github/casact/chainladder-python/blob/main/docs/getting_started/online_sandbox/sandbox_workbook_filled.ipynb) for the filled in workbook. Have questions? Join the [discussion](https://github.com/casact/chainladder-python/discussions) on GitHub."
"Got Stuck? Click [here](https://nbviewer.org/github/casact/chainladder/blob/main/docs/getting_started/online_sandbox/sandbox_workbook_filled.ipynb) for the filled in workbook. Have questions? Join the [discussion](https://github.com/casact/chainladder/discussions) on GitHub."
]
},
{
Expand Down Expand Up @@ -72,7 +72,7 @@
"id": "c9a3a636-979a-4205-9762-469e8afb7e46",
"metadata": {},
"source": [
"Let's begin by looking at a sample dataset, called `xyz`, which is hosted on https://raw.githubusercontent.com/casact/chainladder-python/master/chainladder/utils/data/xyz.csv.\n",
"Let's begin by looking at a sample dataset, called `xyz`, which is hosted on https://raw.githubusercontent.com/casact/chainladder/master/chainladder/utils/data/xyz.csv.\n",
"\n",
"Let's load the dataset into the memory with `pandas`, then inspect its \"`head`\"."
]
Expand All @@ -87,7 +87,7 @@
"outputs": [],
"source": [
"xyz_df = pd.read_csv(\n",
" \"https://raw.githubusercontent.com/casact/chainladder-python/master/chainladder/utils/data/xyz.csv\"\n",
" \"https://raw.githubusercontent.com/casact/chainladder/master/chainladder/utils/data/xyz.csv\"\n",
")\n",
"xyz_df.head()"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"id": "c9a3a636-979a-4205-9762-469e8afb7e46",
"metadata": {},
"source": [
"Let's begin by looking at a sample dataset, called `xyz`, which is hosted on https://raw.githubusercontent.com/casact/chainladder-python/master/chainladder/utils/data/xyz.csv.\n",
"Let's begin by looking at a sample dataset, called `xyz`, which is hosted on https://raw.githubusercontent.com/casact/chainladder/master/chainladder/utils/data/xyz.csv.\n",
"\n",
"Let's load the dataset into the memory with `pandas`, then inspect its \"`head`\"."
]
Expand Down Expand Up @@ -188,7 +188,7 @@
],
"source": [
"xyz_df = pd.read_csv(\n",
" \"https://raw.githubusercontent.com/casact/chainladder-python/master/chainladder/utils/data/xyz.csv\"\n",
" \"https://raw.githubusercontent.com/casact/chainladder/master/chainladder/utils/data/xyz.csv\"\n",
")\n",
"xyz_df.head()"
]
Expand Down
26 changes: 13 additions & 13 deletions docs/getting_started/tutorials/stochastic-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/Repos/chainladder-python/.venv/lib/python3.10/site-packages/scipy/stats/_axis_nan_policy.py:430: UserWarning: `kurtosistest` p-value may be inaccurate with fewer than 20 observations; only n=9 observations were given.\n",
"/home/ubuntu/Repos/chainladder/.venv/lib/python3.10/site-packages/scipy/stats/_axis_nan_policy.py:430: UserWarning: `kurtosistest` p-value may be inaccurate with fewer than 20 observations; only n=9 observations were given.\n",
" return hypotest_fun_in(*args, **kwds)\n"
]
},
Expand Down Expand Up @@ -2426,13 +2426,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
" sigma_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
" std_err_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
" sigma_ = sigma_ * 0\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
" std_err_ = std_err_* 0\n"
]
}
Expand Down Expand Up @@ -3702,13 +3702,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
" sigma_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
" std_err_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
" sigma_ = sigma_ * 0\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
" std_err_ = std_err_* 0\n"
]
}
Expand Down Expand Up @@ -3818,13 +3818,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:120: RuntimeWarning: overflow encountered in exp\n",
" sigma_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:124: RuntimeWarning: overflow encountered in exp\n",
" std_err_ = xp.exp(time_pd * reg.slope_ + reg.intercept_)\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:127: RuntimeWarning: invalid value encountered in multiply\n",
" sigma_ = sigma_ * 0\n",
"/home/ubuntu/Repos/chainladder-python/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
"/home/ubuntu/Repos/chainladder/chainladder/tails/base.py:128: RuntimeWarning: invalid value encountered in multiply\n",
" std_err_ = std_err_* 0\n"
]
},
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started/tutorials/tail-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/Repos/chainladder-python/chainladder/core/base.py:368: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.\n",
"/home/ubuntu/Repos/chainladder/chainladder/core/base.py:368: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.\n",
" datetime_mapping = dict(zip(datetime_arg, pd.to_datetime(**date_inference)))\n"
]
},
Expand Down
Loading
Loading