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

Method getTopicInfo

src/python/handler/module.h:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
250struct CTModelObject : public LDAModelObject

Callers

nothing calls this directly

Calls 2

buildPyValueFunction · 0.70
getKMethod · 0.45

Tested by

no test coverage detected