Skip to content

Commit

Permalink
[skip ci] Fix error computation
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherbugmaster committed Jan 30, 2019
1 parent 52f80fc commit b144de7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gensim/models/nmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __init__(

self._W = None
self.w_std = None
self._w_error = None
self._w_error = np.inf

self._h = None

Expand Down Expand Up @@ -561,8 +561,6 @@ def update(self, corpus):

chunk_idx = 1

prev_w_error = np.inf

for _ in range(self.passes):
for chunk in utils.grouper(corpus, self.chunksize, as_numpy=False):
self.random_state.shuffle(chunk)
Expand Down

0 comments on commit b144de7

Please sign in to comment.