Skip to content

Commit f156b7f

Browse files
Merge pull request #1440 from rocreguant/master
bugfix: 'last_iteration' not initialized
2 parents f842388 + e3aecec commit f156b7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lifelines/fitters/aalen_additive_fitter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def _fit_model_to_data_batch(self, X, T, E, weights, show_progress):
223223
variance_hazards_ = np.zeros((n_deaths, d))
224224
v = np.zeros(d)
225225
start = time.time()
226+
last_iteration = 0
226227

227228
W = np.sqrt(weights)
228229
X = W[:, None] * X

0 commit comments

Comments
 (0)