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

Function test_vectorizer_params

tests/test_text2mat.py:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 , corpus=data)[0], np.ndarray)
37
38def test_vectorizer_params():
39 assert text2mat(data, vectorizer={
40 'model' : 'CountVectorizer',
41 'params': {
42 'max_features' : 2
43 }}, corpus=data)[0].shape[1]==20
44
45def test_LDA_class():
46 assert text2mat(data, semantic=LatentDirichletAllocation, corpus=data)[0].shape[1]==10

Callers

nothing calls this directly

Calls 1

text2matFunction · 0.90

Tested by

no test coverage detected