Model configuration. More...
#include <xmmModelConfiguration.hpp>
Public Member Functions | |
| Configuration () | |
| Default Constructor. More... | |
| Configuration (Configuration const &src) | |
| Copy Constructor. More... | |
| Configuration (Json::Value const &root) | |
| Constructor from Json Structure. More... | |
| Configuration & | operator= (Configuration const &src) |
| Assignment. More... | |
| ClassParameters< ModelType > & | operator[] (std::string label) |
| access the parameters of a given class by label More... | |
| void | reset () |
| Reset the parameters of all classes to default. More... | |
| void | reset (std::string label) |
| Reset the parameters of a given classes to default. More... | |
| 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 | |
| MultithreadingMode | multithreading |
| Multithreading Training Mode. More... | |
| MultiClassRegressionEstimator | multiClass_regression_estimator |
| Regression mode for multiple class (prediction from likeliest class vs interpolation) More... | |
| bool | changed |
| specifies if parameters have changed (model is invalid) More... | |
Protected Attributes | |
| std::map< std::string, ClassParameters< ModelType > > | class_parameters_ |
| Parameters for each class. More... | |
Friends | |
| template<typename SingleClassModel , typename ModelType_ > | |
| class | Model |
Model configuration.
The object contains both default parameters and class-specific parameters
|
inline |
Default Constructor.
|
inline |
Copy Constructor.
| src | Source Object |
|
inlineexplicit |
Constructor from Json Structure.
| root | Json Value |
|
inlineinherited |
"print" method for python => returns the results of write method
|
inlinevirtual |
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.
|
inline |
Assignment.
| src | Source Object |
|
inline |
access the parameters of a given class by label
If the parameters have not been edited for this class yet, they are set to the default parameters.
| label | class label |
|
inlineinherited |
read method for python wrapping ('read' keyword forbidden, name has to be different)
|
inline |
Reset the parameters of all classes to default.
|
inline |
Reset the parameters of a given classes to default.
| label | class label |
|
inlinevirtual |
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 |
|
inherited |
specifies if parameters have changed (model is invalid)
|
protected |
Parameters for each class.
| MultiClassRegressionEstimator xmm::Configuration< ModelType >::multiClass_regression_estimator |
Regression mode for multiple class (prediction from likeliest class vs interpolation)
| MultithreadingMode xmm::Configuration< ModelType >::multithreading |
Multithreading Training Mode.