2bb8e1dfeadfef943c888f7e4e735fd161535475,gensim/test/test_normmodel.py,TestNormModel,testPersistenceCompressed,#TestNormModel#,151
Before Change
self.assertTrue(np.allclose(model.normalize(tstvec), model2.normalize(tstvec))) // try projecting an empty vector
def testPersistenceCompressed(self):
fname = testfile() + ".gz"
model = normmodel.NormModel(self.corpus)
model.save(fname)
model2 = normmodel.NormModel.load(fname, mmap=None)
self.assertTrue(model.norms == model2.norms)
After Change
self.assertTrue(np.allclose(model.normalize(tstvec), model2.normalize(tstvec))) // try projecting an empty vector
def testPersistenceCompressed(self):
fname = get_tmpfile("gensim_models.tst.gz")
model = normmodel.NormModel(self.corpus)
model.save(fname)
model2 = normmodel.NormModel.load(fname, mmap=None)
self.assertTrue(model.norms == model2.norms)
In pattern: SUPERPATTERN
Frequency: 13
Non-data size: 5
Instances
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_normmodel.py
Class Name: TestNormModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_logentropy_model.py
Class Name: TestLogEntropyModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_ldamodel.py
Class Name: TestLdaModel
Method Name: testLargeMmapCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_lsimodel.py
Class Name: TestLsiModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_atmodel.py
Class Name: TestAuthorTopicModel
Method Name: testLargeMmapCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_atmodel.py
Class Name: TestAuthorTopicModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_ldamallet_wrapper.py
Class Name: TestLdaMallet
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_tfidfmodel.py
Class Name: TestTfidfModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_coherencemodel.py
Class Name: TestCoherenceModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_ldamodel.py
Class Name: TestLdaModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_lsimodel.py
Class Name: TestLsiModel
Method Name: testLargeMmapCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_rpmodel.py
Class Name: TestRpModel
Method Name: testPersistenceCompressed
Project Name: RaRe-Technologies/gensim
Commit Name: 2bb8e1dfeadfef943c888f7e4e735fd161535475
Time: 2017-11-06
Author: horpto@users.noreply.github.com
File Name: gensim/test/test_ldamallet_wrapper.py
Class Name: TestLdaMallet
Method Name: testLargeMmapCompressed