Shared Parameters for models with multiple classes. More...
#include <xmmModelSharedParameters.hpp>
Public Member Functions | |
SharedParameters () | |
Default Constructor. More... | |
SharedParameters (SharedParameters const &src) | |
Copy Constructor. More... | |
SharedParameters (Json::Value const &root) | |
Constructor from Json Structure. More... | |
SharedParameters & | operator= (SharedParameters const &src) |
Assignment. More... | |
Json I/O | |
virtual Json::Value | toJson () const |
Write the object to a JSON Structure. More... | |
virtual void | fromJson (Json::Value const &root) |
Read the object from a JSON Structure. More... | |
Python File I/O | |
void | writeFile (char *fileName) const |
write method for python wrapping ('write' keyword forbidden, name has to be different) More... | |
void | readFile (char *fileName) |
read method for python wrapping ('read' keyword forbidden, name has to be different) More... | |
std::string | __str__ () const |
"print" method for python => returns the results of write method More... | |
Public Attributes | |
Attribute< bool > | bimodal |
defines if the phrase is bimodal (true) or unimodal (false) More... | |
Attribute< unsigned int > | dimension |
total dimension of the training data More... | |
Attribute< unsigned int > | dimension_input |
Dimension of the input modality. More... | |
Attribute< std::vector< std::string > > | column_names |
labels of the columns of input/output data (e.g. descriptor names) More... | |
Attribute< unsigned int > | em_algorithm_min_iterations |
Minimum number of iterations of the EM algorithm. More... | |
Attribute< unsigned int > | em_algorithm_max_iterations |
Maximum number of iterations of the EM algorithm. More... | |
Attribute< double > | em_algorithm_percent_chg |
log-likelihood difference threshold necessary to stop the EM algorithm. More... | |
Attribute< unsigned int > | likelihood_window |
Size of the window (in samples) used to compute the likelihoods. More... | |
Protected Member Functions | |
virtual void | onAttributeChange (AttributeBase *attr_pointer) |
notification function called when a member attribute is changed More... | |
Friends | |
template<typename SingleClassModel , typename ModelType > | |
class | Model |
class | SingleClassProbabilisticModel |
class | SingleClassGMM |
class | SingleClassHMM |
class | HierarchicalHMM |
class | GMM |
Shared Parameters for models with multiple classes.
This structure is shared by pointer between the class-specific models to avoid data duplication and ensures that all class-specific models share the same common attributes.
xmm::SharedParameters::SharedParameters | ( | ) |
Default Constructor.
xmm::SharedParameters::SharedParameters | ( | SharedParameters const & | src | ) |
Copy Constructor.
src | Source Object |
|
explicit |
Constructor from Json Structure.
root | Json Value |
|
inlineinherited |
"print" method for python => returns the results of write method
|
virtual |
Read the object from a JSON Structure.
root | JSON value containing the object's information |
JsonException | if the JSON value has a wrong format |
Implements xmm::Writable.
|
protectedvirtual |
notification function called when a member attribute is changed
xmm::SharedParameters & xmm::SharedParameters::operator= | ( | SharedParameters const & | src | ) |
Assignment.
src | Source Object |
|
inlineinherited |
read method for python wrapping ('read' keyword forbidden, name has to be different)
|
virtual |
Write the object to a JSON Structure.
Implements xmm::Writable.
|
inlineinherited |
write method for python wrapping ('write' keyword forbidden, name has to be different)
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Attribute<bool> xmm::SharedParameters::bimodal |
defines if the phrase is bimodal (true) or unimodal (false)
Attribute<std::vector<std::string> > xmm::SharedParameters::column_names |
labels of the columns of input/output data (e.g. descriptor names)
Attribute<unsigned int> xmm::SharedParameters::dimension |
total dimension of the training data
Attribute<unsigned int> xmm::SharedParameters::dimension_input |
Dimension of the input modality.
Attribute<unsigned int> xmm::SharedParameters::em_algorithm_max_iterations |
Maximum number of iterations of the EM algorithm.
If this value is superior to minSteps, this criterion is used. Otherwise, only the em_algorithm_percent_chg criterion applies.
Attribute<unsigned int> xmm::SharedParameters::em_algorithm_min_iterations |
Minimum number of iterations of the EM algorithm.
Attribute<double> xmm::SharedParameters::em_algorithm_percent_chg |
log-likelihood difference threshold necessary to stop the EM algorithm.
When the percent-change in likelihood of the training data given the estimated parameters gets under this threshold, the EM algorithm is stopped.
Attribute<unsigned int> xmm::SharedParameters::likelihood_window |
Size of the window (in samples) used to compute the likelihoods.