Skip to content

Various docstring fixes#1020

Open
henrydingliu wants to merge 97 commits into
mainfrom
experimental
Open

Various docstring fixes#1020
henrydingliu wants to merge 97 commits into
mainfrom
experimental

Conversation

@henrydingliu

@henrydingliu henrydingliu commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Summary of Changes

small fixes to developmetnconstant, glm, and model_diagnostics

Related GitHub Issue(s)

Additional Context for Reviewers

  • I passed tests locally for both code (uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)

Note

Low Risk
Text and documentation only; no changes to algorithms, APIs, or runtime behavior.

Overview
Documentation-only cleanup across development estimators, model_diagnostics, and the utilities notebook—no behavioral changes.

Docstrings: DevelopmentConstant.fit gets blank lines so NumPy/Sphinx sections parse cleanly. TweedieGLM's power parameter replaces the inline ASCII table with a Sphinx .. list-table:: for the power→distribution mapping. model_diagnostics splits a long Returns paragraph so the cross-join / Measure wording renders on separate lines.

User guide (utilities.ipynb): The sample-datasets section drops the hand-maintained table in favor of list_samples() plus a runnable example. A new Model Diagnostics section documents model_diagnostics() with a Chainladder + raa example. Persistence copy is lightly normalized (backticks).

Reviewed by Cursor Bugbot for commit eeb467d. Bugbot is set up for automated code reviews on this repo. Configure here.

henrydingliu and others added 26 commits June 14, 2026 22:00
Part 1 of #970 method docstring follow-up. Properties deferred per reviewer guidance. Refs #970.

Co-authored-by: Cursor <cursoragent@cursor.com>
docs: add docstrings for Triangle broadcast_axis, copy, reindex (#970)
Part 3 of #970 method docstring follow-up. Refs #970.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Part 4 of #970 method docstring follow-up. Refs #970.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Part 5 of #970 method docstring follow-up. Refs #970.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
docs: add docstrings for Triangle exp, log, sqrt, round (#970)
docs: add docstrings for Triangle head, tail, sort_index (#970)
docs: add docstrings for Triangle compute and pipe (#970)
…) (#960)

The Sample Datasets section listed 18 datasets in a hand-maintained
markdown table that had drifted out of date; the package now bundles 46.
Replace the static table with a live cl.list_samples() call so the docs
can no longer drift from the manifest.

model_diagnostics was added to the public API but never demonstrated.
Add a Model Diagnostics section showing it against a fitted Chainladder
model.

Closes #915.
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.08%. Comparing base (0f59a1b) to head (eeb467d).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1020      +/-   ##
==========================================
+ Coverage   88.94%   90.08%   +1.13%     
==========================================
  Files          89       89              
  Lines        5139     5808     +669     
  Branches      660      899     +239     
==========================================
+ Hits         4571     5232     +661     
+ Misses        398      397       -1     
- Partials      170      179       +9     
Flag Coverage Δ
unittests 90.04% <ø> (+1.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants