Sha256: 4d6303cb4ca397ca1b5aee3ae8188fe9582b0d67aef0c50ba9abe62bdc1038ed
Contents?: true
Size: 1.14 KB
Versions: 9
Compression:
Stored size: 1.14 KB
Contents
#pragma once #include "LDA.h" namespace tomoto { template<TermWeight _tw> struct DocumentCTM : public DocumentLDA<_tw> { using BaseDocument = DocumentLDA<_tw>; using DocumentLDA<_tw>::DocumentLDA; Matrix beta; // Dim: (K, betaSample) Vector smBeta; // Dim: K DEFINE_SERIALIZER_AFTER_BASE_WITH_VERSION(BaseDocument, 0, smBeta); DEFINE_TAGGED_SERIALIZER_AFTER_BASE_WITH_VERSION(BaseDocument, 1, 0x00010001, smBeta); }; struct CTArgs : public LDAArgs { }; class ICTModel : public ILDAModel { public: using DefaultDocType = DocumentCTM<TermWeight::one>; static ICTModel* create(TermWeight _weight, const CTArgs& args, bool scalarRng = false); virtual void setNumBetaSample(size_t numSample) = 0; virtual size_t getNumBetaSample() const = 0; virtual void setNumTMNSample(size_t numSample) = 0; virtual size_t getNumTMNSample() const = 0; virtual void setNumDocBetaSample(size_t numSample) = 0; virtual size_t getNumDocBetaSample() const = 0; virtual std::vector<Float> getPriorMean() const = 0; virtual std::vector<Float> getPriorCov() const = 0; virtual std::vector<Float> getCorrelationTopic(Tid k) const = 0; }; }
Version data entries
9 entries across 9 versions & 1 rubygems