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

Method getAlpha2

src/python/handler/py_DT.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::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
105std::vector<float> DTModelObject::getPhi(size_t timepoint, size_t topicId) const
106{

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.80
getKMethod · 0.45
getAlphaMethod · 0.45

Tested by

no test coverage detected