1 #ifndef _LDAPLUSPLUS_EM_FASTSUPERVISEDESTEP_HPP_ 2 #define _LDAPLUSPLUS_EM_FASTSUPERVISEDESTEP_HPP_ 4 #include "ldaplusplus/em/AbstractEStep.hpp" 18 template<
typename Scalar>
21 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixX;
22 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> VectorX;
62 size_t e_step_iterations = 10,
63 Scalar e_step_tolerance = 1e-2,
66 Scalar compute_likelihood = 1.0,
100 std::shared_ptr<parameters::Parameters>
doc_e_step(
101 const std::shared_ptr<corpus::Document> doc,
102 const std::shared_ptr<parameters::Parameters> parameters
122 size_t e_step_iterations_;
125 Scalar e_step_tolerance_;
131 Scalar compute_likelihood_;
142 #endif // _LDAPLUSPLUS_EM_FASTSUPERVISEDESTEP_HPP_ Definition: FastSupervisedEStep.hpp:19
Definition: FastSupervisedEStep.hpp:35
CWeightType
Definition: FastSupervisedEStep.hpp:29
Definition: FastSupervisedEStep.hpp:40
std::shared_ptr< parameters::Parameters > doc_e_step(const std::shared_ptr< corpus::Document > doc, const std::shared_ptr< parameters::Parameters > parameters) override
Definition: FastSupervisedEStep.cpp:30
void e_step() override
Definition: FastSupervisedEStep.cpp:102
FastSupervisedEStep(size_t e_step_iterations=10, Scalar e_step_tolerance=1e-2, Scalar C=1, CWeightType weight_type=CWeightType::Constant, Scalar compute_likelihood=1.0, int random_state=0)
Definition: FastSupervisedEStep.cpp:12
Definition: AbstractEStep.hpp:21
Definition: Document.hpp:11