| 335 | } |
| 336 | |
| 337 | std::vector<tomoto::Float> LDAModelObject::getTopicWordDist(size_t topicId, bool normalize) const |
| 338 | { |
| 339 | auto* inst = getInst<tomoto::ILDAModel>(); |
| 340 | if (topicId >= inst->getK()) throw py::ValueError{ "topic_id must < K" }; |
| 341 | |
| 342 | return inst->getWidsByTopic(topicId, normalize); |
| 343 | } |
| 344 | |
| 345 | py::UniqueObj LDAModelObject::infer(PyObject* docObj, size_t iteration, float tolerance, size_t workers, tomoto::ParallelScheme ps, bool together, PyObject* transform) const |
| 346 | { |
nothing calls this directly
no test coverage detected