Repository navigation
[DOCS] Restructure the DevelopmentML, TweedieGLM and BarnettZehnwirth user guide - #1744
Open
Abhayindia wants to merge 1 commit into
Open
Abhayindia wants to merge 1 commit into
Abhayindia wants to merge 1 commit into
Conversation
Abhayindia
requested review from
genedan,
henrydingliu and
kennethshsu
as code owners
December 3, 2026 16:47
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): no exported symbol type-completeness changes detected. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1744 +/- ##
=======================================
Coverage 95.42% 95.42%
=======================================
Files 101 101
Lines 6858 6858
Branches 860 860
=======================================
Hits 6544 6544
Misses 199 199
Partials 115 115
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Part of #1670, taking henrydingliu's three suggestions. I am adhering to the standards in the Governing Doc.
Order:
DevelopmentMLnow comes first as the framework, thenTweedieGLMandBarnettZehnwirthas its two common forms. Both do build on it in the code:TweedieGLMwraps aDevelopmentMLaround apatsyformula and aTweedieRegressor, andBarnettZehnwirthis aTweedieGLMthat uses ordinary least squares. Their intros now say so.Patsy: there is one "Patsy formulas" subsection, under
DevelopmentML, which merges the oldPatsyFormulasubsection with the explanation of R-style formulas. TheTweedieGLM"R-style formulas" subsection now points to it and keeps its example cell. I also fixed "that used extensively" in passing.ODP Chainladder and Origin-varying patterns: the paragraph after the ODP fit promised a comparison with
Developmentbut no cell showed one, while "Origin-varying patterns" was where the replication actually happened. The replication now sits in "ODP Chainladder" (the penalized fit, then thealpha=0fit and "every row matchescl.Development().fit(genins).ldf_"), and "Origin-varying patterns" is only about the drift term and sits at the end of theTweedieGLMsection. I checked the numbers the new text relies on: the penalized fit is within 4e-4 ofDevelopmentand thealpha=0fit within 8e-7, with identical rows in both.No code cell was edited, only moved, so the stored outputs travel with them, which is why the diff is large (469 lines, mostly moved cells); the text changes are in 8 markdown cells.
pytest --nbmakeon the notebook passes in the new order, andruff format --checkandruff checkare clean. I did not build the docs, so the rendered page and its{cite}links are unchecked.AI disclosure, per the Governing Doc: I used Claude (Claude Code) to help write the edits and this description. I read, ran and checked every part myself before sending it.