1 #ifndef _LDAPLUSPLUS_EM_MULTINOMIALSUPERVISEDESTEP_HPP_ 2 #define _LDAPLUSPLUS_EM_MULTINOMIALSUPERVISEDESTEP_HPP__ 4 #include "ldaplusplus/em/AbstractEStep.hpp" 10 template<
typename Scalar>
13 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
14 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
36 size_t e_step_iterations = 10,
37 Scalar e_step_tolerance = 1e-2,
39 Scalar eta_weight = 1,
40 Scalar compute_likelihood = 1.0,
68 std::shared_ptr<parameters::Parameters>
doc_e_step(
69 const std::shared_ptr<corpus::Document> doc,
70 const std::shared_ptr<parameters::Parameters> parameters
75 size_t e_step_iterations_;
78 Scalar e_step_tolerance_;
85 Scalar compute_likelihood_;
91 #endif // _LDAPLUSPLUS_EM_MULTINOMIALSUPERVISEDESTEP_HPP_ std::shared_ptr< parameters::Parameters > doc_e_step(const std::shared_ptr< corpus::Document > doc, const std::shared_ptr< parameters::Parameters > parameters) override
Definition: MultinomialSupervisedEStep.cpp:27
Definition: MultinomialSupervisedEStep.hpp:11
MultinomialSupervisedEStep(size_t e_step_iterations=10, Scalar e_step_tolerance=1e-2, Scalar mu=2, Scalar eta_weight=1, Scalar compute_likelihood=1.0, int random_state=0)
Definition: MultinomialSupervisedEStep.cpp:10
Definition: AbstractEStep.hpp:21
Definition: Document.hpp:11