| 239 | |
| 240 | template<auto memFn> |
| 241 | py::UniqueObj getTopicInfo(size_t topicId) const |
| 242 | { |
| 243 | auto* inst = getInst<tomoto::IHLDAModel>(); |
| 244 | if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < K" }; |
| 245 | if (!isPrepared) throw py::RuntimeError{ "train() should be called first" }; |
| 246 | return py::buildPyValue((inst->*memFn)(topicId)); |
| 247 | } |
| 248 | }; |
| 249 | |
| 250 | struct CTModelObject : public LDAModelObject |
nothing calls this directly
no test coverage detected