MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getZFromHLDA

Method getZFromHLDA

src/python/handler/py_HLDA.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38py::UniqueObj DocumentObject::getZFromHLDA() const
39{
40 return docVisit<tomoto::DocumentHLDA>(getBoundDoc(), [](auto* doc)
41 {
42 return buildPyValueReorder(doc->Zs, doc->wOrder, [doc](tomoto::Tid x) -> int16_t
43 {
44 if (x == tomoto::non_topic_id) return -1;
45 return doc->path[x];
46 });
47 });
48}
49
50
51std::vector<float> HLDAModelObject::getAlpha() const

Callers

nothing calls this directly

Calls 1

buildPyValueReorderFunction · 0.85

Tested by

no test coverage detected