MCPcopy
hub / github.com/ContextLab/hypertools / test_tfidf_LDA

Function test_tfidf_LDA

tests/test_text2mat.py:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 semantic='LatentDirichletAllocation', corpus=data)[0], np.ndarray)
16
17def test_tfidf_LDA():
18 isinstance(text2mat(data, vectorizer='TfidfVectorizer',
19 semantic='LatentDirichletAllocation', corpus=data)[0], np.ndarray)
20
21def test_count_NMF():
22 isinstance(text2mat(data, vectorizer='CountVectorizer', semantic='NMF', corpus=data)[0], np.ndarray)

Callers

nothing calls this directly

Calls 1

text2matFunction · 0.90

Tested by

no test coverage detected