1 #ifndef _LDAPLUSPLUS_EM_CORRESPONDENCESUPERVISEDESTEP_HPP_ 2 #define _LDAPLUSPLUS_EM_CORRESPONDENCESUPERVISEDESTEP_HPP_ 4 #include "ldaplusplus/em/AbstractEStep.hpp" 47 template<
typename Scalar>
50 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
51 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
70 size_t e_step_iterations = 10,
71 Scalar e_step_tolerance = 1e-2,
73 Scalar compute_likelihood = 1.0,
104 std::shared_ptr<parameters::Parameters>
doc_e_step(
105 const std::shared_ptr<corpus::Document> doc,
106 const std::shared_ptr<parameters::Parameters> parameters
111 size_t e_step_iterations_;
114 Scalar e_step_tolerance_;
118 Scalar compute_likelihood_;
124 #endif // _LDAPLUSPLUS_EM_CORRESPONDENCESUPERVISEDESTEP_HPP__ CorrespondenceSupervisedEStep(size_t e_step_iterations=10, Scalar e_step_tolerance=1e-2, Scalar mu=2., Scalar compute_likelihood=1.0, int random_state=0)
Definition: CorrespondenceSupervisedEStep.cpp:10
Definition: CorrespondenceSupervisedEStep.hpp:48
std::shared_ptr< parameters::Parameters > doc_e_step(const std::shared_ptr< corpus::Document > doc, const std::shared_ptr< parameters::Parameters > parameters) override
Definition: CorrespondenceSupervisedEStep.cpp:25
Definition: AbstractEStep.hpp:21
Definition: Document.hpp:11