|
tesseract
4.00.00dev
|
#include <network.h>
Public Member Functions | |
| Network () | |
| Network (NetworkType type, const STRING &name, int ni, int no) | |
| virtual | ~Network () |
| NetworkType | type () const |
| bool | IsTraining () const |
| bool | needs_to_backprop () const |
| int | num_weights () const |
| int | NumInputs () const |
| int | NumOutputs () const |
| virtual StaticShape | InputShape () const |
| virtual StaticShape | OutputShape (const StaticShape &input_shape) const |
| const STRING & | name () const |
| virtual STRING | spec () const |
| bool | TestFlag (NetworkFlags flag) const |
| virtual bool | IsPlumbingType () const |
| virtual void | SetEnableTraining (TrainingState state) |
| virtual void | SetNetworkFlags (uinT32 flags) |
| virtual int | InitWeights (float range, TRand *randomizer) |
| virtual void | ConvertToInt () |
| virtual void | SetRandomizer (TRand *randomizer) |
| virtual bool | SetupNeedsBackprop (bool needs_backprop) |
| virtual int | XScaleFactor () const |
| virtual void | CacheXScaleFactor (int factor) |
| virtual void | DebugWeights () |
| virtual bool | Serialize (TFile *fp) const |
| virtual bool | DeSerialize (TFile *fp) |
| virtual void | Update (float learning_rate, float momentum, int num_samples) |
| virtual void | CountAlternators (const Network &other, double *same, double *changed) const |
| virtual void | Forward (bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) |
| virtual bool | Backward (bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) |
| void | DisplayForward (const NetworkIO &matrix) |
| void | DisplayBackward (const NetworkIO &matrix) |
Static Public Member Functions | |
| static Network * | CreateFromFile (TFile *fp) |
| static void | ClearWindow (bool tess_coords, const char *window_name, int width, int height, ScrollView **window) |
| static int | DisplayImage (Pix *pix, ScrollView *window) |
Protected Member Functions | |
| double | Random (double range) |
Protected Attributes | |
| NetworkType | type_ |
| TrainingState | training_ |
| bool | needs_to_backprop_ |
| inT32 | network_flags_ |
| inT32 | ni_ |
| inT32 | no_ |
| inT32 | num_weights_ |
| STRING | name_ |
| ScrollView * | forward_win_ |
| ScrollView * | backward_win_ |
| TRand * | randomizer_ |
Static Protected Attributes | |
| static char const *const | kTypeNames [NT_COUNT] |
| tesseract::Network::Network | ( | ) |
Definition at line 76 of file network.cpp.
| tesseract::Network::Network | ( | NetworkType | type, |
| const STRING & | name, | ||
| int | ni, | ||
| int | no | ||
| ) |
Definition at line 87 of file network.cpp.
|
virtual |
Definition at line 100 of file network.cpp.
|
inlinevirtual |
Reimplemented in tesseract::LSTM, tesseract::FullyConnected, tesseract::Reversed, tesseract::Input, tesseract::Series, tesseract::Parallel, tesseract::Reconfig, tesseract::Convolve, and tesseract::Maxpool.
Definition at line 259 of file network.h.
|
inlinevirtual |
Reimplemented in tesseract::Plumbing, tesseract::Input, and tesseract::Series.
|
static |
Definition at line 309 of file network.cpp.
|
inlinevirtual |
Reimplemented in tesseract::LSTM, tesseract::FullyConnected, and tesseract::Plumbing.
|
inlinevirtual |
Reimplemented in tesseract::Plumbing, tesseract::FullyConnected, and tesseract::LSTM.
Definition at line 203 of file network.cpp.
|
inlinevirtual |
Reimplemented in tesseract::Plumbing, tesseract::LSTM, and tesseract::FullyConnected.
Definition at line 204 of file network.h.
|
virtual |
Reimplemented in tesseract::Plumbing, tesseract::LSTM, tesseract::FullyConnected, tesseract::Reconfig, tesseract::Input, tesseract::Convolve, and tesseract::Maxpool.
Definition at line 172 of file network.cpp.
| void tesseract::Network::DisplayBackward | ( | const NetworkIO & | matrix | ) |
Definition at line 296 of file network.cpp.
| void tesseract::Network::DisplayForward | ( | const NetworkIO & | matrix | ) |
Definition at line 285 of file network.cpp.
|
static |
Definition at line 332 of file network.cpp.
|
inlinevirtual |
Reimplemented in tesseract::LSTM, tesseract::FullyConnected, tesseract::Reversed, tesseract::Input, tesseract::Series, tesseract::Parallel, tesseract::Reconfig, tesseract::Convolve, and tesseract::Maxpool.
Definition at line 248 of file network.h.
Reimplemented in tesseract::LSTM, tesseract::FullyConnected, tesseract::Plumbing, and tesseract::Series.
Definition at line 132 of file network.cpp.
|
inlinevirtual |
Reimplemented in tesseract::Input, and tesseract::Plumbing.
|
inlinevirtual |
Reimplemented in tesseract::Plumbing.
|
inline |
Definition at line 115 of file network.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in tesseract::LSTM, tesseract::Input, tesseract::Reconfig, tesseract::FullyConnected, tesseract::Parallel, tesseract::Reversed, and tesseract::Series.
Definition at line 133 of file network.h.
|
protected |
Definition at line 278 of file network.cpp.
|
virtual |
Reimplemented in tesseract::Plumbing, tesseract::LSTM, tesseract::FullyConnected, tesseract::Reconfig, tesseract::Input, and tesseract::Convolve.
Definition at line 153 of file network.cpp.
|
virtual |
Reimplemented in tesseract::LSTM, tesseract::FullyConnected, and tesseract::Plumbing.
Definition at line 112 of file network.cpp.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in tesseract::Plumbing, and tesseract::Series.
Definition at line 147 of file network.cpp.
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in tesseract::Plumbing, tesseract::FullyConnected, and tesseract::LSTM.
|
inlinevirtual |
Reimplemented in tesseract::Plumbing, tesseract::Input, tesseract::Series, and tesseract::Reconfig.
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |