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

Method getSubTopicPrior

src/python/handler/py_PA.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::vector<float> PAModelObject::getSubTopicPrior(size_t topicId, bool normalize) const
48{
49 auto* inst = getInst<tomoto::IPAModel>();
50 if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < k1" };
51
52 return inst->getSubTopicBySuperTopic(topicId, normalize);
53}
54
55std::vector<std::pair<tomoto::Tid, tomoto::Float>> PAModelObject::getSubTopics(size_t topicId, size_t topN) const
56{

Callers

nothing calls this directly

Calls 2

getKMethod · 0.45

Tested by

no test coverage detected