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

Method getY

src/python/handler/py_SLDA.cpp:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232py::UniqueObj DocumentObject::getY() const
233{
234 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `" "y" "` field!" };
235 if (!doc) throw py::RuntimeError{ "doc is null!" };
236 if (auto ret = docVisit<tomoto::DocumentSLDA>(getBoundDoc(), [](auto* doc)
237 {
238 return py::buildPyValue(doc->y);
239 })) return ret;
240 throw py::AttributeError{ "doc has no `" "y" "` field!" };
241}

Callers

nothing calls this directly

Calls 2

isIndependentMethod · 0.80
buildPyValueFunction · 0.70

Tested by

no test coverage detected