| 52 | } |
| 53 | |
| 54 | std::vector<float> HPAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 55 | { |
| 56 | auto* inst = getInst<tomoto::IHPAModel>(); |
| 57 | if (topicId > inst->getK() + inst->getK2()) throw py::ValueError{ "must topic_id < 1 + K1 + K2" }; |
| 58 | return inst->getWidsByTopic(topicId, normalize); |
| 59 | } |
| 60 | |
| 61 | py::UniqueObj HPAModelObject::infer(PyObject* doc, size_t iteration, float tolerance, size_t workers, tomoto::ParallelScheme ps, bool together, PyObject* transform) const |
| 62 | { |
nothing calls this directly
no test coverage detected