Skip to content

Commit

Permalink
use random_state instead of seed.
Browse files Browse the repository at this point in the history
  • Loading branch information
devashishd12 committed Jun 29, 2016
1 parent cc7f3eb commit afa0b41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gensim/test/test_coherencemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ def testfile():

class TestCoherenceModel(unittest.TestCase):
def setUp(self):
np.random.seed(8)
self.badLdaModel = LdaModel(corpus=corpus, num_topics=2, passes=1) # Bad lda model
self.goodLdaModel = LdaModel(corpus=corpus, num_topics=2, passes=50) # Good lda model
self.badLdaModel = LdaModel(corpus=corpus, num_topics=2, passes=1, random_state=17) # Bad lda model
self.goodLdaModel = LdaModel(corpus=corpus, num_topics=2, passes=50, random_state=17) # Good lda model

def testUMassLdaModel(self):
"""Test U_Mass topic coherence algorithm on LDA Model"""
Expand Down

0 comments on commit afa0b41

Please sign in to comment.