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

Method getTypeOfVar

src/python/handler/py_SLDA.cpp:192–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192std::string SLDAModelObject::getTypeOfVar(size_t varId) const
193{
194 auto* inst = getInst<tomoto::ISLDAModel>();
195 if (varId >= inst->getF()) throw py::ValueError{ "`var_id` must be < `f`" };
196 return std::string{ "l\0b" + (size_t)inst->getTypeOfVar(varId) * 2 };
197}
198
199py::UniqueObj SLDAModelObject::estimateVars(PyObject* docObj) const
200{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected