Skip to content

Commit

Permalink
DevelopmentConstant + TailConstant compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt-wcf committed Mar 17, 2020
1 parent f488cd2 commit 7a0ea9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chainladder/development/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def fit(self, X, y=None, sample_weight=None):

self.ldf_ = obj
self.cdf_ = self._get_cdf(self)
#self.sigma_ = self._param_property(X, params, 1)
#self.std_err_ = self._param_property(X, params, 2)
self.sigma_ = self.ldf_*0+1
self.std_err_ = self.ldf_*0+1
return self

def transform(self, X):
Expand All @@ -83,7 +83,7 @@ def transform(self, X):
X_new : New triangle with transformed attributes.
"""
X_new = copy.copy(X)
triangles = ['cdf_', 'ldf_']
triangles = ['cdf_', 'ldf_', 'sigma_', 'std_err_']
for item in triangles:
setattr(X_new, item, getattr(self, item))
X_new._set_slicers()
Expand Down

0 comments on commit 7a0ea9c

Please sign in to comment.