Skip to content

Commit

Permalink
set predict slicer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bogaardt committed Feb 12, 2020
1 parent cfd13a4 commit ac16880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions chainladder/methods/benktander.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def _get_ultimate_(self, X, sample_weight, obj):
ult.ddims = np.array([None])
ult.valuation = pd.DatetimeIndex([pd.to_datetime('2262-04-11')] *
ult.shape[origin])
ult._set_slicers()
return ult

def predict(self, X, sample_weight):
Expand Down
2 changes: 2 additions & 0 deletions chainladder/methods/capecod.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def _get_ultimate_(self, X, sample_weight, obj):
ult.valuation = pd.DatetimeIndex([pd.to_datetime('2262-04-11')] *
len_orig)
apriori_._set_slicers()
ult._set_slicers()
detrended_apriori_._set_slicers()
return ult, apriori_, detrended_apriori_

def predict(self, X, sample_weight):
Expand Down

0 comments on commit ac16880

Please sign in to comment.