Skip to content

Commit

Permalink
Fix PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherbugmaster committed Aug 14, 2018
1 parent f71ad89 commit 936e629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion gensim/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from .hdpmodel import HdpModel # noqa:F401
from .ldamodel import LdaModel # noqa:F401
from .lsimodel import LsiModel # noqa:F401
from .nmf import Nmf #noqa:F401
from .tfidfmodel import TfidfModel # noqa:F401
from .rpmodel import RpModel # noqa:F401
from .logentropy_model import LogEntropyModel # noqa:F401
Expand Down
3 changes: 1 addition & 2 deletions gensim/models/nmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def show_topics(self, num_topics=10, num_words=10, log=False, formatted=True):

sorted_topics = list(matutils.argsort(sparsity))
chosen_topics = (
sorted_topics[: num_topics // 2] + sorted_topics[-num_topics // 2 :]
sorted_topics[: num_topics // 2] + sorted_topics[-num_topics // 2:]
)

shown = []
Expand Down Expand Up @@ -369,5 +369,4 @@ def _solveproj(self, v, W, h=None, r=None, v_max=None):

self._h_r_error = error_


return h, r

0 comments on commit 936e629

Please sign in to comment.