Skip to content

Commit

Permalink
prep 0.8.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaard committed Jul 11, 2021
1 parent d50be78 commit 86a3b83
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions chainladder/utils/utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ def model_diagnostics(model, name=None, groupby=None):
idx['Measure'] = col
idx['Model'] = obj.__class__.__name__ if name is None else name
idx = idx[list(idx.columns[-2:]) + list(idx.columns[:-2])]

out = latest.iloc[:, 0].rename('columns', ['Latest'])
out = latest[col].rename('columns', ['Latest'])
if obj.X_.development_grain in ['M']:
out['Month Incremental'] = obj.X_[col][val==obj.X_.valuation_date].sum('development')
if obj.X_.development_grain in ['M', 'Q']:
Expand Down
29 changes: 29 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ Releases

Version 0.8
===========

Version 0.8.5
--------------
Release Date: Jul 11, 2021

**Enhancements**

* `#154 <https://github.com/casact/chainladder-python/issues/154>`__ - Added `groupby` hyperparameter to several more estimators including the widely used `Development` estimator. This allows fitting development patterns at a higher grain than the Triangle all within the estiamtor or Pipeline.
- Improved index broadcasting for sparse arrays. Prior to `0.8.5`, this code would
inappropriately consume too much memory. For example:

>>> prism = cl.load_sample('prism')
>>> prism / prism.groupby('Line').sum()

- Arithmetic label matching improved for all axes to align more with pandas
- Added ``model_diagnostics`` utility function to be used on fitted estimators.
- Initial support for ``dask`` arrays. Current support is basic, but will eventually allow for distributed computations on massive triangles.
- added numpy array protocol support to the Triangle class. Now numpy functions can be called on Triangles. For example:

>>> np.sin(cl.load_sample('raa'))

* `#169 <https://github.com/casact/chainladder-python/issues/169>`__ - Made Triangle tutorial more beginner friendly - courtesy of @kennethhsu

**Bug Fixes**

- Better Estimator pickling support when callables are included in estimators.
- Minor bug fix in `grain` estimator.


Version 0.8.4
--------------
Release Date: May 9, 2021
Expand Down

0 comments on commit 86a3b83

Please sign in to comment.