Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt authored Dec 4, 2024
1 parent a0e6197 commit 6e71f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chainladder/development/incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class IncrementalAdditive(DevelopmentBase):
Drops lowest link ratio(s) from LDF calculation
drop_above: float or list of floats (default = numpy.inf)
Drops all link ratio(s) above the given parameter from incremental factor calculation
drop_below: float or list of floats (default = numpy.NINF)
drop_below: float or list of floats (default = -numpy.inf)
Drops all link ratio(s) below the given parameter from incremental factor calculation
preserve: int (default = 1)
The minimum number of incremental factor(s) required for incremental factor calculation
Expand Down Expand Up @@ -73,7 +73,7 @@ class IncrementalAdditive(DevelopmentBase):

def __init__(
self, trend=0.0, n_periods=-1, average="volume", future_trend=0,
drop=None, drop_high=None, drop_low=None, drop_above=np.inf, drop_below=np.NINF, drop_valuation=None, preserve = 1):
drop=None, drop_high=None, drop_low=None, drop_above=np.inf, drop_below=-np.inf, drop_valuation=None, preserve = 1):
self.trend = trend
self.n_periods = n_periods
self.average = average
Expand Down Expand Up @@ -205,4 +205,4 @@ def _param_property(self, factor, params):
obj.is_cumulative = False
obj.virtual_columns.columns = {}
obj._set_slicers()
return obj
return obj

0 comments on commit 6e71f98

Please sign in to comment.