Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docstring mismatches #492

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix docstring mismatches
  • Loading branch information
MatthewCaseres committed Jan 21, 2024
commit da0b3491f6bb59bf15b4156d4b7d4c8a59cab0e8
4 changes: 2 additions & 2 deletions chainladder/methods/chainladder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def fit(self, X, y=None, sample_weight=None):
return self

def predict(self, X, sample_weight=None):
"""Predicts the Benktander ultimate on a new triangle **X**
"""Predicts the chainladder ultimate on a new triangle **X**

Parameters
----------
Expand All @@ -61,7 +61,7 @@ def predict(self, X, sample_weight=None):
Returns
-------
X_new: Triangle
Loss data with Benktander ultimate applied
Loss data with chainladder ultimate applied
"""
X_new = super().predict(X, sample_weight)
X_new.ultimate_ = self._get_ultimate(X_new, sample_weight)
Expand Down
4 changes: 2 additions & 2 deletions chainladder/methods/expectedloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, apriori=1.0, apriori_sigma=0.0, random_state=None):
self.random_state = random_state

def fit(self, X, y=None, sample_weight=None):
"""Applies the Bornhuetter-Ferguson technique to triangle **X**
"""Applies the Benktander technique to triangle **X**

Parameters
----------
Expand All @@ -60,7 +60,7 @@ def fit(self, X, y=None, sample_weight=None):
return self

def predict(self, X, sample_weight=None):
"""Predicts the Bornhuetter-Ferguson ultimate on a new triangle **X**
"""Predicts the Benktander ultimate on a new triangle **X**

Parameters
----------
Expand Down
Loading