From 86a3b838c02e4ea1317eeb58a2c080ece6d7b0b7 Mon Sep 17 00:00:00 2001 From: jbogaard Date: Sun, 11 Jul 2021 10:09:05 -0600 Subject: [PATCH] prep 0.8.5 release --- chainladder/utils/utility_functions.py | 3 +-- docs/releases.rst | 29 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/chainladder/utils/utility_functions.py b/chainladder/utils/utility_functions.py index c4bbd302..6b3a89a5 100644 --- a/chainladder/utils/utility_functions.py +++ b/chainladder/utils/utility_functions.py @@ -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']: diff --git a/docs/releases.rst b/docs/releases.rst index d83fe2c4..5a7a0f5b 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -4,6 +4,35 @@ Releases Version 0.8 =========== + +Version 0.8.5 +-------------- +Release Date: Jul 11, 2021 + +**Enhancements** + +* `#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 `__ - 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