sync#890
Closed
henrydingliu wants to merge 29 commits into
Closed
Conversation
Adds Sphinx doctest Examples sections to DevelopmentCorrelation and ValuationCorrelation. Each example opens with the Mack chain-ladder assumption being tested, prints the full decision signal (statistic, confidence band, and boolean) rather than a single boolean, and ties the result back to the chain-ladder workflow. Refs #704
Adds Sphinx doctest Examples section to the BootstrapODPSample class showing basic fit (resampled_triangles_.shape and scale_), downstream stochastic IBNR via Chainladder, and the effect of drop_high on scale_. Uses random_state=42 and n_sims=100 for deterministic, fast output. Refs #704
Rewords the paragraph introducing the drop_high=True example to describe it as a leave-one-out sensitivity check on the column maxima rather than outlier removal, since drop_high mechanically removes the column max without any outlier test. Addresses review feedback on #836.
Per @henrydingliu review on #844: opening paragraph now scoped to the calendar-effect concept; the per-diagonal vs whole-triangle distinction is introduced as a transition between the two testcode blocks. Refs #704
- Drop the jb build internals + duplicate warnings note (kennethshsu) - Rename 'tutorial notebooks' to 'onboarding and Quickstart notebooks' (kennethshsu) - Drop the 'What to edit for which part of the site' table and 'Known issues' section as redundant with the Source files table and #841 (kennethshsu)
…missing unit tests.
…stic values for changed options.
docs: add README documenting docs build sources and outputs
Improved docstring and added examples for Development class
[REFACTOR]: Remove repetitive code. Remove dead Python 3.8 code. Add …
…option getters and setters. Deprecate cl.array_backend() and cl.auto_sparse()
first batch of deliverables for friedland reconstruction
[REFACTOR]: Continue work on cl.__init__.py refactor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Related GitHub Issue(s)
Additional Context for Reviewers
uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)Note
Medium Risk
Datetime and global
Optionsbehavior affect valuation dates and test fixtures across the core package; removing deprecated option helpers may break downstream callers that still use them.Overview
Package configuration refactors
chainladder’s public init: Pandas 2/3 datetime compatibility moves fromoptions.DT64_*to module-level__dt64_dtype__/__dt64_unit__, with call sites updated inbase,pandas, andutility_functions.Optionsbecomes an instance class with validatedget_option/set_option, per-option or fullreset_option, and stored defaults; deprecated top-levelarray_backend/auto_sparsehelpers are removed in favor ofchainladder.options.Tests gain shared
_sample_fixtureinconftest.py(backend setup/teardown), expanded options coverage, and datetime tests keyed off__dt64_unit__.Documentation adds contributor
docs/README.md, a Friedland book section (RST doctests for chapters 6–7, WIP chapter 8 notebook, TOC entry), and large numpydoc expansions with runnable examples onDevelopment,BootstrapODPSample, and Mack correlation classes. Minor doc build tweaks (pyproject.tomltrailing comma,Developmentautosummary stub).Reviewed by Cursor Bugbot for commit 449b5c1. Bugbot is set up for automated code reviews on this repo. Configure here.