Skip to content

Commit

Permalink
Avoid using 'Est' as a short hand for 'Estimator'
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Jul 2, 2024
1 parent 527f88d commit 94e7397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hazardous/_ipcw.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def compute_censoring_survival_proba(self, times, X=None, ipcw_training=False):
return self.censoring_survival_func_(times)


class AlternatingCensoringEst(BaseIPCW):
class AlternatingCensoringEstimator(BaseIPCW):
"""IPCW estimator for Debiased Gradient Boosting Incidence.
Predict :math:`\hat{G}(t | X = x) = p(C > t | X = x)` using
Expand Down
6 changes: 3 additions & 3 deletions hazardous/_survival_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sklearn.utils.validation import check_array, check_random_state
from tqdm import tqdm

from ._ipcw import AlternatingCensoringEst
from ._ipcw import AlternatingCensoringEstimator
from .metrics._brier_score import (
IncidenceScoreComputer,
integrated_brier_score_incidence,
Expand Down Expand Up @@ -219,7 +219,7 @@ def fit(self, X, y, times=None):
self.time_grid_.sort()

if self.ipcw_est is None:
ipcw_est = AlternatingCensoringEst(incidence_est=self.estimator_)
ipcw_est = AlternatingCensoringEstimator(incidence_est=self.estimator_)
else:
ipcw_est = self.ipcw_est

Expand Down Expand Up @@ -263,7 +263,7 @@ def fit(self, X, y, times=None):
)

if (idx_iter % self.n_iter_before_feedback == 0) and isinstance(
ipcw_est, AlternatingCensoringEst
ipcw_est, AlternatingCensoringEstimator
):
self.weighted_targets_.fit(X)

Expand Down

0 comments on commit 94e7397

Please sign in to comment.