Sha256: 856a0838e703be583448f60048c5b2e4fe22e744ccdd60ebd4ef4ce921f17c95

Contents?: true

Size: 798 Bytes

Versions: 9

Compression:

Stored size: 798 Bytes

Contents

#pragma once
#include "LDA.h"

namespace tomoto
{
	template<TermWeight _tw>
	struct DocumentLLDA : public DocumentLDA<_tw>
	{
		using BaseDocument = DocumentLDA<_tw>;
		using DocumentLDA<_tw>::DocumentLDA;
		using WeightType = typename DocumentLDA<_tw>::WeightType;
		Eigen::Matrix<int8_t, -1, 1> labelMask;

		DEFINE_SERIALIZER_AFTER_BASE_WITH_VERSION(BaseDocument, 0, labelMask);
		DEFINE_TAGGED_SERIALIZER_AFTER_BASE_WITH_VERSION(BaseDocument, 1, 0x00010001, labelMask);
	};

	class ILLDAModel : public ILDAModel
	{
	public:
		using DefaultDocType = DocumentLLDA<TermWeight::one>;
		static ILLDAModel* create(TermWeight _weight, const LDAArgs& args,
			bool scalarRng = false);

		virtual const Dictionary& getTopicLabelDict() const = 0;

		virtual size_t getNumTopicsPerLabel() const = 0;
	};
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tomoto-0.4.0 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.3.3 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.3.2 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.3.1 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.3.0 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.2.3 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.2.2 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.2.1 vendor/tomotopy/src/TopicModel/LLDA.h
tomoto-0.2.0 vendor/tomotopy/src/TopicModel/LLDA.h