1 #ifndef _LDAPLUSPLUS_EM_SUPERVISEDESTEP_HPP_ 2 #define _LDAPLUSPLUS_EM_SUPERVISEDESTEP_HPP_ 4 #include "ldaplusplus/em/AbstractEStep.hpp" 28 template <
typename Scalar>
31 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
32 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
51 size_t e_step_iterations = 10,
52 Scalar e_step_tolerance = 1e-2,
53 size_t fixed_point_iterations = 20,
54 Scalar compute_likelihood = 1.0,
90 std::shared_ptr<parameters::Parameters>
doc_e_step(
91 const std::shared_ptr<corpus::Document> doc,
92 const std::shared_ptr<parameters::Parameters> parameters
97 size_t e_step_iterations_;
99 size_t fixed_point_iterations_;
102 Scalar e_step_tolerance_;
104 Scalar compute_likelihood_;
110 #endif // _LDAPLUSPLUS_EM_SUPERVISEDESTEP_HPP_ Definition: SupervisedEStep.hpp:29
std::shared_ptr< parameters::Parameters > doc_e_step(const std::shared_ptr< corpus::Document > doc, const std::shared_ptr< parameters::Parameters > parameters) override
Definition: SupervisedEStep.cpp:25
SupervisedEStep(size_t e_step_iterations=10, Scalar e_step_tolerance=1e-2, size_t fixed_point_iterations=20, Scalar compute_likelihood=1.0, int random_state=0)
Definition: SupervisedEStep.cpp:10
Definition: AbstractEStep.hpp:21
Definition: Document.hpp:11