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

Function test_LDA_class_instance

tests/test_text2mat.py:48–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 assert text2mat(data, semantic=LatentDirichletAllocation, corpus=data)[0].shape[1]==10
47
48def test_LDA_class_instance():
49 user_model = LatentDirichletAllocation(n_components=15)
50 assert text2mat(data, semantic=user_model, corpus=data)[0].shape[1]==15
51
52def test_corpus():
53 assert text2mat(data, corpus=data)[0].shape[1]==20

Callers

nothing calls this directly

Calls 1

text2matFunction · 0.90

Tested by

no test coverage detected