| 30 | } |
| 31 | |
| 32 | bool 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 | |
| 39 | std::pair<py::UniquePObj<LDAModelObject>, py::UniqueObj> HDPModelObject::convertToLDA(PyObject* LDAType, float topicThreshold) const |
| 40 | { |