Sha256: e349ad676ca7c22f5cc080e49152c8ce68124bf4e1e7fca9be6ba378afb6b712
Contents?: true
Size: 788 Bytes
Versions: 5
Compression:
Stored size: 788 Bytes
Contents
#pragma once #include "PA.h" namespace tomoto { template<TermWeight _tw> struct DocumentHPA : public DocumentPA<_tw> { using BaseDocument = DocumentPA<_tw>; using DocumentPA<_tw>::DocumentPA; using WeightType = typename DocumentPA<_tw>::WeightType; template<typename _TopicModel> void update(WeightType* ptr, const _TopicModel& mdl); DEFINE_SERIALIZER_BASE_WITH_VERSION(BaseDocument, 0); DEFINE_SERIALIZER_BASE_WITH_VERSION(BaseDocument, 1); }; class IHPAModel : public IPAModel { public: using DefaultDocType = DocumentHPA<TermWeight::one>; static IHPAModel* create(TermWeight _weight, bool _exclusive = false, size_t _K1 = 1, size_t _K2 = 1, Float _alpha = 50, Float _eta = 0.01, size_t seed = std::random_device{}(), bool scalarRng = false); }; }
Version data entries
5 entries across 5 versions & 1 rubygems