Options for the FANN MVA method.
More...
#include <FANN.h>
|
virtual void | load (const boost::property_tree::ptree &pt) override |
| Load mechanism to load Options from a xml tree. More...
|
|
virtual void | save (boost::property_tree::ptree &pt) const override |
| Save mechanism to store Options in a xml tree. More...
|
|
virtual po::options_description | getDescription () override |
| Returns a program options description for all available options.
|
|
virtual std::string | getMethod () const override |
| Return method name.
|
|
std::vector< unsigned int > | getHiddenLayerNeurons (unsigned int nf) const |
| Returns the internal vector parameter with the number of hidden neurons per layer. More...
|
|
Options for the FANN MVA method.
Definition at line 29 of file FANN.h.
◆ getHiddenLayerNeurons()
std::vector< unsigned int > getHiddenLayerNeurons |
( |
unsigned int |
nf | ) |
const |
Returns the internal vector parameter with the number of hidden neurons per layer.
- Parameters
-
nf | number of features (input nodes). |
Definition at line 93 of file FANNOptions.cc.
95 std::vector<unsigned int> hiddenLayers;
98 while (std::getline(iLayers, layer,
',')) {
99 for (
auto& character : layer) {
100 if (character ==
'N') character =
'x';
102 auto* iLayerSize =
new TFormula(
"iLayerSize", layer.c_str());
103 hiddenLayers.push_back(iLayerSize->Eval(nf));
std::string m_hidden_layers_architecture
String containing the architecture of hidden neurons.
◆ load()
void load |
( |
const boost::property_tree::ptree & |
pt | ) |
|
|
overridevirtual |
◆ save()
void save |
( |
boost::property_tree::ptree & |
pt | ) |
const |
|
overridevirtual |
◆ m_hidden_layers_architecture
std::string m_hidden_layers_architecture = "3*N" |
String containing the architecture of hidden neurons.
Ex. "3,3*N,3*(N-1)
Definition at line 62 of file FANN.h.
◆ m_random_seeds
unsigned int m_random_seeds |
Initial value:
Number of times the training is repeated with a new weight random seed.
The one with the best result is saved.
Definition at line 70 of file FANN.h.
◆ m_test_rate
Initial value:
Error on validation is compared with the one before.
The number of epochs before is given by this parameter.
Definition at line 72 of file FANN.h.
The documentation for this class was generated from the following files: