Failed
dariah_topics.postprocessing._show_lda_doc_topics (from nosetests)
Failing for the past 1 build
(Since Failed )
Error Message
Failed doctest test for dariah_topics.postprocessing._show_lda_doc_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 402, in _show_lda_doc_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 423, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) 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_lda_doc_topics[2]>", line 1, in <module> doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) NameError: name 'create_doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 424, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: vocab = doc_term_matrix.columns 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_lda_doc_topics[3]>", line 1, in <module> vocab = doc_term_matrix.columns NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 426, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: model.fit(doc_term_matrix.as_matrix().astype(int)) 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_lda_doc_topics[5]>", line 1, in <module> model.fit(doc_term_matrix.as_matrix().astype(int)) NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 427, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: topics = lda2dataframe(model, vocab) 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_lda_doc_topics[6]>", line 1, in <module> topics = lda2dataframe(model, vocab) NameError: name 'lda2dataframe' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 428, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: doc_topic = lda_doc_topic(model, vocab, ['doc1', 'doc2']) 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_lda_doc_topics[7]>", line 1, in <module> doc_topic = lda_doc_topic(model, vocab, ['doc1', 'doc2']) NameError: name 'lda_doc_topic' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 429, in dariah_topics.postprocessing._show_lda_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_lda_doc_topics[8]>", line 1, in <module> len(doc_topic.T) == 2 NameError: name 'doc_topic' is not defined
Stacktrace
Traceback (most recent call last): 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())) AssertionError: Failed doctest test for dariah_topics.postprocessing._show_lda_doc_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 402, in _show_lda_doc_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 423, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) 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_lda_doc_topics[2]>", line 1, in <module> doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) NameError: name 'create_doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 424, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: vocab = doc_term_matrix.columns 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_lda_doc_topics[3]>", line 1, in <module> vocab = doc_term_matrix.columns NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 426, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: model.fit(doc_term_matrix.as_matrix().astype(int)) 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_lda_doc_topics[5]>", line 1, in <module> model.fit(doc_term_matrix.as_matrix().astype(int)) NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 427, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: topics = lda2dataframe(model, vocab) 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_lda_doc_topics[6]>", line 1, in <module> topics = lda2dataframe(model, vocab) NameError: name 'lda2dataframe' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 428, in dariah_topics.postprocessing._show_lda_doc_topics Failed example: doc_topic = lda_doc_topic(model, vocab, ['doc1', 'doc2']) 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_lda_doc_topics[7]>", line 1, in <module> doc_topic = lda_doc_topic(model, vocab, ['doc1', 'doc2']) NameError: name 'lda_doc_topic' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 429, in dariah_topics.postprocessing._show_lda_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_lda_doc_topics[8]>", line 1, in <module> len(doc_topic.T) == 2 NameError: name 'doc_topic' is not defined