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

Function test_text_model_params

tests/test_text2mat.py:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 assert isinstance(text2mat(data, semantic=None, corpus=data)[0], np.ndarray)
29
30def test_text_model_params():
31 assert isinstance(text2mat(data, semantic={
32 'model' : 'LatentDirichletAllocation',
33 'params' : {
34 'learning_method' : 'batch'
35 }}
36 , corpus=data)[0], np.ndarray)
37
38def test_vectorizer_params():
39 assert text2mat(data, vectorizer={

Callers

nothing calls this directly

Calls 1

text2matFunction · 0.90

Tested by

no test coverage detected