Skip to content

Commit

Permalink
Merge pull request #1440 from rocreguant/master
Browse files Browse the repository at this point in the history
bugfix: 'last_iteration' not initialized
  • Loading branch information
CamDavidsonPilon authored Jul 17, 2022
2 parents f842388 + e3aecec commit f156b7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lifelines/fitters/aalen_additive_fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def _fit_model_to_data_batch(self, X, T, E, weights, show_progress):
variance_hazards_ = np.zeros((n_deaths, d))
v = np.zeros(d)
start = time.time()
last_iteration = 0

W = np.sqrt(weights)
X = W[:, None] * X
Expand Down

0 comments on commit f156b7f

Please sign in to comment.