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

Function test_geo_text_data

tests/test_geo.py:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_geo_text_data():
64 data = [['i like cats alot', 'cats r pretty cool', 'cats are better than dogs'],
65 ['dogs rule the haus', 'dogs are my jam', 'dogs are a mans best friend']]
66 geo = plot(data, show=False)
67 assert isinstance(geo, DataGeometry)
68 assert geo.transform(data)[0].shape[1]==3
69 assert geo.semantic == 'LatentDirichletAllocation'
70 assert isinstance(geo.plot(show=False), DataGeometry)
71
72
73def test_geo_text_data_marker():

Callers

nothing calls this directly

Calls 3

plotFunction · 0.90
plotMethod · 0.80
transformMethod · 0.45

Tested by

no test coverage detected