Skip to content

Commit

Permalink
Merge pull request #118 from filippobistaffa/master
Browse files Browse the repository at this point in the history
Avoids ignoring `seed=0`
  • Loading branch information
cjekel authored Dec 31, 2024
2 parents f192f2b + a2cef27 commit afc385d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwlf/pwlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def __init__(self, x, y, disp_res=False, lapack_driver='gelsd', degree=1,
# self.weights2 = weights*weights
self.y_w = np.dot(self.y_data, np.eye(self.n_data) * self.weights)

if seed:
if seed is not None:
np.random.seed(seed)
self.seed = seed

Expand Down

0 comments on commit afc385d

Please sign in to comment.