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

Method initGlobalState

src/TopicModel/CTModel.hpp:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 }
233
234 void initGlobalState(bool initDocs)
235 {
236 BaseClass::initGlobalState(initDocs);
237 if (initDocs)
238 {
239 topicPrior = math::MultiNormalDistribution<Float>{ this->K };
240 }
241 }
242
243 public:
244 DEFINE_SERIALIZER_AFTER_BASE_WITH_VERSION(BaseClass, 0, numBetaSample, numTMNSample, topicPrior);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected