| 90 | } |
| 91 | |
| 92 | std::vector<float> DTModelObject::getAlpha2(size_t timepoint) const |
| 93 | { |
| 94 | auto* inst = getInst<tomoto::IDTModel>(); |
| 95 | if (timepoint >= inst->getT()) throw py::ValueError{ "`timepoint` must < `DTModel.num_timepoints`" }; |
| 96 | |
| 97 | vector<float> alphas; |
| 98 | for (size_t i = 0; i < inst->getK(); ++i) |
| 99 | { |
| 100 | alphas.emplace_back(inst->getAlpha(i, timepoint)); |
| 101 | } |
| 102 | return alphas; |
| 103 | } |
| 104 | |
| 105 | std::vector<float> DTModelObject::getPhi(size_t timepoint, size_t topicId) const |
| 106 | { |
nothing calls this directly
no test coverage detected