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

Method isLiveTopic

src/python/handler/py_HDP.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool HDPModelObject::isLiveTopic(size_t topicId) const
33{
34 auto* inst = getInst<tomoto::IHDPModel>();
35 if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < K" };
36 return inst->isLiveTopic(topicId);
37}
38
39std::pair<py::UniquePObj<LDAModelObject>, py::UniqueObj> HDPModelObject::convertToLDA(PyObject* LDAType, float topicThreshold) const
40{

Callers

nothing calls this directly

Calls 1

getKMethod · 0.45

Tested by

no test coverage detected