Skip to content

Commit

Permalink
prep 0.8.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed May 9, 2021
1 parent 2950a74 commit 048e3f6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chainladder/methods/capecod.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def fit(self, X, y=None, sample_weight=None):
self.X_ = self.validate_X(X)
self.validate_weight(X, sample_weight)
sample_weight = sample_weight.set_backend(self.X_.array_backend)
self.apriori_, self.detrended_apriori_ = self._handle_aprioris(X, sample_weight)
self.apriori_, self.detrended_apriori_ = self._handle_aprioris(self.X_, sample_weight)
self.expectation_ = self.detrended_apriori_ * sample_weight.values
super().fit(X, y, self.expectation_)
return self
Expand Down
2 changes: 1 addition & 1 deletion chainladder/tails/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fit(self, X, y=None, sample_weight=None):
self.ldf_.values = xp.concatenate((self.ldf_.values, tail), -1)
self.ldf_.ddims = ddims
if hasattr(obj, "sigma_"):
zeros = tail[..., :obj.shape[2], -1:] * 0
zeros = (obj.sigma_.iloc[..., -1:] * 0).values
self.sigma_ = getattr(obj, "sigma_").copy()
self.sigma_.values = xp.concatenate((self.sigma_.values, zeros), -1)
self.std_err_ = getattr(obj, "std_err_").copy()
Expand Down
17 changes: 17 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ Releases

Version 0.8
===========
Version 0.8.4
--------------
Release Date: May 9, 2021

**Enhancements**

- `#153 <https://github.com/casact/chainladder-python/issues/153>`__ - Introduced CapeCod ``groupby`` parameter that allows for apriori computation at user-specified grain for granular triangles
- `#154 <https://github.com/casact/chainladder-python/issues/154>`__ - Introduced ``groupby`` support in key development estimators

**Bug Fixes**

- `#152 <https://github.com/casact/chainladder-python/issues/152>`__ - CapeCod apriori is not supporting nans effectively
- `#157 <https://github.com/casact/chainladder-python/issues/157>`__ - ``cum_to_incr()`` not working as expected on ``full_triangle_``
- `#155 <https://github.com/casact/chainladder-python/issues/155>`__ - ``full_triangle_`` cdf broadcasting bug
- `#156 <https://github.com/casact/chainladder-python/issues/156>`__ - Unable to inspect ``sigma_`` or ``std_err_`` properties after tail fit


Version 0.8.3
--------------
Release Date: Apr 25, 2021
Expand Down

0 comments on commit 048e3f6

Please sign in to comment.