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

Method getAlpha

src/python/handler/py_LDA.cpp:499–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499std::vector<float> LDAModelObject::getAlpha() const
500{
501 auto* inst = getInst<tomoto::ILDAModel>();
502 vector<float> ret;
503 for (size_t i = 0; i < inst->getK(); ++i)
504 {
505 ret.emplace_back(inst->getAlpha(i));
506 }
507 return ret;
508}
509
510std::vector<std::string> LDAModelObject::getRemovedTopWords() const
511{

Callers

nothing calls this directly

Calls 2

emplace_backMethod · 0.80
getKMethod · 0.45

Tested by

no test coverage detected