LDA++
SemiSupervisedMStep.hpp
1 #ifndef _LDAPLUSPLUS_EM_SEMISUPERVISEDMSTEP_HPP_
2 #define _LDAPLUSPLUS_EM_SEMISUPERVISEDMSTEP_HPP_
3 
4 
5 #include "ldaplusplus/em/FastSupervisedMStep.hpp"
6 
7 namespace ldaplusplus {
8 namespace em {
9 
10 
20 template <typename Scalar>
22 {
23  public:
32  size_t m_step_iterations = 10,
33  Scalar m_step_tolerance = 1e-2,
34  Scalar regularization_penalty = 1e-2
35  ) : FastSupervisedMStep<Scalar>(
36  m_step_iterations,
37  m_step_tolerance,
38  regularization_penalty
39  )
40  {}
41 
52  virtual void doc_m_step(
53  const std::shared_ptr<corpus::Document> doc,
54  const std::shared_ptr<parameters::Parameters> v_parameters,
55  std::shared_ptr<parameters::Parameters> m_parameters
56  ) override;
57 };
58 
59 } // namespace em
60 } // namespace ldaplusplus
61 
62 #endif // _LDAPLUSPLUS_EM_SEMISUPERVISEDMSTEP_HPP_
SemiSupervisedMStep(size_t m_step_iterations=10, Scalar m_step_tolerance=1e-2, Scalar regularization_penalty=1e-2)
Definition: SemiSupervisedMStep.hpp:31
Definition: SemiSupervisedMStep.hpp:21
virtual void doc_m_step(const std::shared_ptr< corpus::Document > doc, const std::shared_ptr< parameters::Parameters > v_parameters, std::shared_ptr< parameters::Parameters > m_parameters) override
Definition: SemiSupervisedMStep.cpp:8
Definition: Document.hpp:11
Definition: FastSupervisedMStep.hpp:45