#include <MLP.h>
Public Member Functions | |
void | clear () |
const double * | eval (double *data) const |
unsigned int | getEpoch () const |
int | getLayers () const |
const int * | getLayout () const |
void | init (unsigned int rows) |
void | load (const std::string file) |
MLP (unsigned int nIn, unsigned int nOut, const std::string layout) | |
void | save (const std::string file) const |
void | set (unsigned int row, double *data, double *target, double weight=1.0) |
double | train () |
~MLP () | |
Private Member Functions | |
void | setLearn (void) |
void | setNPattern (unsigned int size) |
Private Attributes | |
unsigned int | epoch |
bool | initialized |
int | layers |
int * | layout |
Static Private Attributes | |
static bool | inUse = false |
PhysicsTools::MLP::MLP | ( | unsigned int | nIn, |
unsigned int | nOut, | ||
const std::string | layout | ||
) |
Definition at line 43 of file MLP.cc.
References Exception, mps_fire::i, InitWeights(), createfilelist::int, inUse, layers, layout, LearnAlloc(), MLP_SetNet(), class-composition::nodes, setLearn(), and PhysicsTools::split().
PhysicsTools::MLP::~MLP | ( | ) |
void PhysicsTools::MLP::clear | ( | void | ) |
Definition at line 90 of file MLP.cc.
References FreePatterns(), initialized, and PAT.
Referenced by ~MLP().
const double * PhysicsTools::MLP::eval | ( | double * | data | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 21 of file MLP.h.
References layout, setLearn(), setNPattern(), and findQualityFiles::size.
void PhysicsTools::MLP::init | ( | unsigned int | rows | ) |
Definition at line 122 of file MLP.cc.
References AllocPatterns(), initialized, layers, layout, and setNPattern().
void PhysicsTools::MLP::load | ( | const std::string | file | ) |
Definition at line 161 of file MLP.cc.
References epoch, createfilelist::int, and LoadWeights().
void PhysicsTools::MLP::save | ( | const std::string | file | ) | const |
Definition at line 154 of file MLP.cc.
References epoch, Exception, and SaveWeights().
void PhysicsTools::MLP::set | ( | unsigned int | row, |
double * | data, | ||
double * | target, | ||
double | weight = 1.0 |
||
) |
|
private |
|
private |
Definition at line 114 of file MLP.cc.
References createfilelist::int, layers, layout, and PAT.
Referenced by getLayout(), and init().
double PhysicsTools::MLP::train | ( | ) |
|
private |
|
private |
|
staticprivate |
|
private |
Definition at line 28 of file MLP.h.
Referenced by eval(), getLayers(), init(), MLP(), set(), and setNPattern().
|
private |
Definition at line 29 of file MLP.h.
Referenced by Vispa.Gui.Header.FrameWithHeader::__init__(), Vispa.Views.PropertyView.ClosableProperty::__init__(), Vispa.Views.PropertyView.IntegerProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Gui.FindDialog.FindDialog::_remove(), Vispa.Gui.Header.FrameWithHeader::addWidget(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), getLayout(), init(), MLP(), set(), setNPattern(), Vispa.Main.SplitterTab.SplitterToolBar::setSectionSizes(), and ~MLP().