Failed
dariah_topics.postprocessing._show_gensim_doc_topics (from nosetests)
Failing for the past 1 build
(Since Failed )
Error Message
Failed doctest test for dariah_topics.postprocessing._show_gensim_doc_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 506, in _show_gensim_doc_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 531, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: doc_topic = visualization.create_doc_topic(corpus, model, doc_labels) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_gensim_doc_topics[7]>", line 1, in <module> doc_topic = visualization.create_doc_topic(corpus, model, doc_labels) NameError: name 'visualization' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 532, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: len(doc_topic.T) == 2 Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_gensim_doc_topics[8]>", line 1, in <module> len(doc_topic.T) == 2 NameError: name 'doc_topic' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 533, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: True Expected nothing Got: True -------------------- >> begin captured logging << -------------------- gensim.corpora.mmcorpus: INFO: storing corpus in Matrix Market format to /tmp/corpus.mm gensim.matutils: INFO: saving sparse matrix to /tmp/corpus.mm gensim.matutils: INFO: PROGRESS: saving document #0 gensim.matutils: INFO: saved 2x2 matrix, density=25.000% (1/4) gensim.matutils: DEBUG: closing /tmp/corpus.mm gensim.matutils: DEBUG: closing /tmp/corpus.mm gensim.corpora.indexedcorpus: INFO: saving MmCorpus index to /tmp/corpus.mm.index gensim.corpora.indexedcorpus: INFO: loaded corpus index from /tmp/corpus.mm.index gensim.matutils: INFO: initializing corpus reader from /tmp/corpus.mm gensim.matutils: INFO: accepted corpus with 2 documents, 2 features, 1 non-zero entries gensim.models.ldamodel: INFO: using symmetric alpha at 1.0 gensim.models.ldamodel: INFO: using symmetric eta at 0.5 gensim.models.ldamodel: INFO: using serial LDA version on this node gensim.models.ldamodel: INFO: running online (single-pass) LDA training, 1 topics, 1 passes over the supplied corpus of 2 documents, updating model once every 2 documents, evaluating perplexity every 2 documents, iterating 50x with a convergence threshold of 0.001000 gensim.models.ldamodel: WARNING: too few updates, training might not converge; consider increasing the number of passes or iterations to improve accuracy gensim.models.ldamodel: DEBUG: bound: at document #0 gensim.models.ldamodel: INFO: -1.127 per-word bound, 2.2 perplexity estimate based on a held-out corpus of 2 documents with 0 words gensim.models.ldamodel: INFO: PROGRESS: pass 0, at document #2/2 gensim.models.ldamodel: DEBUG: performing inference on a chunk of 2 documents gensim.models.ldamodel: DEBUG: 2/2 documents converged within 50 iterations gensim.models.ldamodel: DEBUG: updating topics gensim.models.ldamodel: INFO: topic #0 (1.000): 0.600*"corpus" + 0.400*"test" gensim.models.ldamodel: INFO: topic diff=0.419180, rho=1.000000 --------------------- >> end captured logging << ---------------------
Stacktrace
File "/usr/lib/python3.5/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib/python3.5/unittest/case.py", line 601, in run testMethod() File "/usr/lib/python3.5/doctest.py", line 2190, in runTest raise self.failureException(self.format_failure(new.getvalue())) Failed doctest test for dariah_topics.postprocessing._show_gensim_doc_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 506, in _show_gensim_doc_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 531, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: doc_topic = visualization.create_doc_topic(corpus, model, doc_labels) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_gensim_doc_topics[7]>", line 1, in <module> doc_topic = visualization.create_doc_topic(corpus, model, doc_labels) NameError: name 'visualization' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 532, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: len(doc_topic.T) == 2 Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_gensim_doc_topics[8]>", line 1, in <module> len(doc_topic.T) == 2 NameError: name 'doc_topic' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 533, in dariah_topics.postprocessing._show_gensim_doc_topics Failed example: True Expected nothing Got: True -------------------- >> begin captured logging << -------------------- gensim.corpora.mmcorpus: INFO: storing corpus in Matrix Market format to /tmp/corpus.mm gensim.matutils: INFO: saving sparse matrix to /tmp/corpus.mm gensim.matutils: INFO: PROGRESS: saving document #0 gensim.matutils: INFO: saved 2x2 matrix, density=25.000% (1/4) gensim.matutils: DEBUG: closing /tmp/corpus.mm gensim.matutils: DEBUG: closing /tmp/corpus.mm gensim.corpora.indexedcorpus: INFO: saving MmCorpus index to /tmp/corpus.mm.index gensim.corpora.indexedcorpus: INFO: loaded corpus index from /tmp/corpus.mm.index gensim.matutils: INFO: initializing corpus reader from /tmp/corpus.mm gensim.matutils: INFO: accepted corpus with 2 documents, 2 features, 1 non-zero entries gensim.models.ldamodel: INFO: using symmetric alpha at 1.0 gensim.models.ldamodel: INFO: using symmetric eta at 0.5 gensim.models.ldamodel: INFO: using serial LDA version on this node gensim.models.ldamodel: INFO: running online (single-pass) LDA training, 1 topics, 1 passes over the supplied corpus of 2 documents, updating model once every 2 documents, evaluating perplexity every 2 documents, iterating 50x with a convergence threshold of 0.001000 gensim.models.ldamodel: WARNING: too few updates, training might not converge; consider increasing the number of passes or iterations to improve accuracy gensim.models.ldamodel: DEBUG: bound: at document #0 gensim.models.ldamodel: INFO: -1.127 per-word bound, 2.2 perplexity estimate based on a held-out corpus of 2 documents with 0 words gensim.models.ldamodel: INFO: PROGRESS: pass 0, at document #2/2 gensim.models.ldamodel: DEBUG: performing inference on a chunk of 2 documents gensim.models.ldamodel: DEBUG: 2/2 documents converged within 50 iterations gensim.models.ldamodel: DEBUG: updating topics gensim.models.ldamodel: INFO: topic #0 (1.000): 0.600*"corpus" + 0.400*"test" gensim.models.ldamodel: INFO: topic diff=0.419180, rho=1.000000 --------------------- >> end captured logging << ---------------------