|
tesseract
4.00.00dev
|
#include <plumbing.h>
Public Member Functions | |
| Plumbing (const STRING &name) | |
| virtual | ~Plumbing () |
| virtual StaticShape | InputShape () const |
| virtual STRING | spec () 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 void | AddToStack (Network *network) |
| virtual bool | SetupNeedsBackprop (bool needs_backprop) |
| virtual int | XScaleFactor () const |
| virtual void | CacheXScaleFactor (int factor) |
| virtual void | DebugWeights () |
| const PointerVector< Network > & | stack () const |
| void | EnumerateLayers (const STRING *prefix, GenericVector< STRING > *layers) const |
| Network * | GetLayer (const char *id) const |
| float | LayerLearningRate (const char *id) const |
| void | ScaleLayerLearningRate (const char *id, double factor) |
| float * | LayerLearningRatePtr (const char *id) const |
| 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 |
Public Member Functions inherited from tesseract::Network | |
| 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 | OutputShape (const StaticShape &input_shape) const |
| const STRING & | name () const |
| bool | TestFlag (NetworkFlags flag) 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) |
Protected Attributes | |
| PointerVector< Network > | stack_ |
| GenericVector< float > | learning_rates_ |
Protected Attributes inherited from tesseract::Network | |
| 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_ |
Additional Inherited Members | |
Static Public Member Functions inherited from tesseract::Network | |
| 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 inherited from tesseract::Network | |
| double | Random (double range) |
Static Protected Attributes inherited from tesseract::Network | |
| static char const *const | kTypeNames [NT_COUNT] |
Definition at line 30 of file plumbing.h.
|
explicit |
Definition at line 25 of file plumbing.cpp.
|
virtual |
Definition at line 29 of file plumbing.cpp.
|
virtual |
Definition at line 75 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Reimplemented in tesseract::Series.
Definition at line 119 of file plumbing.cpp.
|
virtual |
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 227 of file plumbing.cpp.
|
virtual |
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 190 of file plumbing.cpp.
| void tesseract::Plumbing::EnumerateLayers | ( | const STRING * | prefix, |
| GenericVector< STRING > * | layers | ||
| ) | const |
Definition at line 132 of file plumbing.cpp.
| Network * tesseract::Plumbing::GetLayer | ( | const char * | id | ) | const |
Definition at line 148 of file plumbing.cpp.
Reimplemented from tesseract::Network.
Reimplemented in tesseract::Series.
Definition at line 53 of file plumbing.cpp.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from tesseract::Network.
Definition at line 44 of file plumbing.h.
|
inline |
Definition at line 102 of file plumbing.h.
| float * tesseract::Plumbing::LayerLearningRatePtr | ( | const char * | id | ) | const |
Definition at line 161 of file plumbing.cpp.
|
inline |
Definition at line 108 of file plumbing.h.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 175 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 34 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 42 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 69 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Reimplemented in tesseract::Series.
Definition at line 93 of file plumbing.cpp.
|
inlinevirtual |
Reimplemented from tesseract::Network.
Reimplemented in tesseract::Parallel, tesseract::Reversed, and tesseract::Series.
Definition at line 38 of file plumbing.h.
|
inline |
Definition at line 93 of file plumbing.h.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 210 of file plumbing.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Reimplemented in tesseract::Series.
Definition at line 113 of file plumbing.cpp.
|
protected |
Definition at line 136 of file plumbing.h.
|
protected |
Definition at line 133 of file plumbing.h.