| 117 | } |
| 118 | |
| 119 | std::vector<float> DTModelObject::getTopicWordDist(size_t topicId, size_t timepoint, bool normalize) const |
| 120 | { |
| 121 | auto* inst = getInst<tomoto::IDTModel>(); |
| 122 | if (topicId >= inst->getK()) throw py::ValueError{ "must topic_id < k" }; |
| 123 | if (timepoint >= inst->getT()) throw py::ValueError{ "must topic_id < t" }; |
| 124 | return inst->getWidsByTopic(topicId + inst->getK() * timepoint, normalize); |
| 125 | } |
| 126 | |
| 127 | py::UniqueObj DTModelObject::getCountByTopic() const |
| 128 | { |
nothing calls this directly
no test coverage detected