LDA++
|
Public Member Functions | |
MultinomialSupervisedMStep (Scalar mu=2.) | |
virtual void | m_step (std::shared_ptr< parameters::Parameters > parameters) override |
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 |
Public Member Functions inherited from ldaplusplus::events::EventDispatcherComposition | |
std::shared_ptr< EventDispatcherInterface > | get_event_dispatcher () |
void | set_event_dispatcher (std::shared_ptr< EventDispatcherInterface > dispatcher) |
|
overridevirtual |
Perform calculations for a specific document.The variational parameters are only passed to the maximization step in this method. In other implementations this method is usually called sufficient statistics.This method allows for the implementation of online LDA inference methods.
doc | A single document |
v_parameters | The variational parameters computed in the e-step |
m_parameters | Model parameters could be changed in case of online methods |
Implements ldaplusplus::em::MStepInterface< Scalar >.
|
overridevirtual |
Maximize the ELBO.This function usually changes the passed in parameters.
parameters | Model parameters (maybe changed after call) |
Implements ldaplusplus::em::MStepInterface< Scalar >.