Skip to content

Commit 4f53ab4

Browse files
henrydingliudanielfong-actdanielfong-act
authored
updating branch and adding another test (#640)
* Fix for #634 (#638) squashed commits as some the earlier commit were later reversed * Added exposure adjustment to barnzehn.py. Updated ptf example gallary with exposure adjustments to match paper. * fixed bug when not passing sample_weight to BarnettZehnwirth.fit. updated plot_ptf_resid in gallery. * removed sample_weight from barnettzehnwirth.fit * unremoved sample_weight from barnettzehnwirth.fit -- the estimator ignores it as it did originall * fixed graph title --------- Co-authored-by: danielfong-act <[email protected]> * adding another test for bz --------- Co-authored-by: danielfong-act <[email protected]> Co-authored-by: danielfong-act <[email protected]>
1 parent 2e38f15 commit 4f53ab4

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

chainladder/development/tests/test_barnzehn.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def test_drops():
2626
np.around(cl.BarnettZehnwirth(formula='C(development)',drop_valuation='1979').fit(abc).triangle_ml_.values,3)
2727
== np.around(cl.BarnettZehnwirth(formula='C(development)',drop = [('1977',36),('1978',24),('1979',12)]).fit(abc).triangle_ml_.values,3)
2828
)
29+
assert np.all(
30+
np.around(cl.BarnettZehnwirth(formula='C(development)',drop_valuation='1979').fit(abc).ldf_.values,3)
31+
== np.around(cl.BarnettZehnwirth(formula='C(development)',drop = [('1977',36),('1978',24),('1979',12)]).fit(abc).ldf_.values,3)
32+
)
33+
2934

3035
def test_bz_2008():
3136
'''

docs/gallery/plot_ptf_resid.ipynb

Lines changed: 14 additions & 11 deletions
Large diffs are not rendered by default.

docs/images/plot_ptf_resid.png

-42.3 KB
Loading

0 commit comments

Comments
 (0)