|
tesseract
4.00.00dev
|
#include <fullyconnected.h>
Public Member Functions | |
| FullyConnected (const STRING &name, int ni, int no, NetworkType type) | |
| virtual | ~FullyConnected () |
| virtual StaticShape | OutputShape (const StaticShape &input_shape) const |
| virtual STRING | spec () const |
| void | ChangeType (NetworkType type) |
| virtual void | SetEnableTraining (TrainingState state) |
| virtual int | InitWeights (float range, TRand *randomizer) |
| virtual void | ConvertToInt () |
| virtual void | DebugWeights () |
| virtual bool | Serialize (TFile *fp) const |
| virtual bool | DeSerialize (TFile *fp) |
| virtual void | Forward (bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) |
| void | SetupForward (const NetworkIO &input, const TransposedArray *input_transpose) |
| void | ForwardTimeStep (const double *d_input, const inT8 *i_input, int t, double *output_line) |
| virtual bool | Backward (bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) |
| void | BackwardTimeStep (const NetworkIO &fwd_deltas, int t, double *curr_errors, TransposedArray *errors_t, double *backprop) |
| void | FinishBackward (const TransposedArray &errors_t) |
| 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 | InputShape () const |
| const STRING & | name () const |
| bool | TestFlag (NetworkFlags flag) const |
| virtual bool | IsPlumbingType () const |
| virtual void | SetNetworkFlags (uinT32 flags) |
| virtual void | SetRandomizer (TRand *randomizer) |
| virtual bool | SetupNeedsBackprop (bool needs_backprop) |
| virtual int | XScaleFactor () const |
| virtual void | CacheXScaleFactor (int factor) |
| void | DisplayForward (const NetworkIO &matrix) |
| void | DisplayBackward (const NetworkIO &matrix) |
Protected Attributes | |
| WeightMatrix | weights_ |
| TransposedArray | source_t_ |
| const TransposedArray * | external_source_ |
| NetworkIO | acts_ |
| bool | int_mode_ |
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 28 of file fullyconnected.h.
| tesseract::FullyConnected::FullyConnected | ( | const STRING & | name, |
| int | ni, | ||
| int | no, | ||
| NetworkType | type | ||
| ) |
Definition at line 35 of file fullyconnected.cpp.
|
virtual |
Definition at line 40 of file fullyconnected.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 204 of file fullyconnected.cpp.
| void tesseract::FullyConnected::BackwardTimeStep | ( | const NetworkIO & | fwd_deltas, |
| int | t, | ||
| double * | curr_errors, | ||
| TransposedArray * | errors_t, | ||
| double * | backprop | ||
| ) |
Definition at line 249 of file fullyconnected.cpp.
|
inline |
Definition at line 60 of file fullyconnected.h.
|
virtual |
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 291 of file fullyconnected.cpp.
|
virtual |
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 101 of file fullyconnected.cpp.
| void tesseract::FullyConnected::FinishBackward | ( | const TransposedArray & | errors_t | ) |
Definition at line 273 of file fullyconnected.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 107 of file fullyconnected.cpp.
| void tesseract::FullyConnected::ForwardTimeStep | ( | const double * | d_input, |
| const inT8 * | i_input, | ||
| int | t, | ||
| double * | output_line | ||
| ) |
Definition at line 176 of file fullyconnected.cpp.
Reimplemented from tesseract::Network.
Definition at line 76 of file fullyconnected.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 45 of file fullyconnected.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 94 of file fullyconnected.cpp.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 60 of file fullyconnected.cpp.
| void tesseract::FullyConnected::SetupForward | ( | const NetworkIO & | input, |
| const TransposedArray * | input_transpose | ||
| ) |
Definition at line 164 of file fullyconnected.cpp.
|
inlinevirtual |
Reimplemented from tesseract::Network.
Definition at line 37 of file fullyconnected.h.
|
virtual |
Reimplemented from tesseract::Network.
Definition at line 283 of file fullyconnected.cpp.
|
protected |
Definition at line 123 of file fullyconnected.h.
|
protected |
Definition at line 121 of file fullyconnected.h.
|
protected |
Definition at line 126 of file fullyconnected.h.
|
protected |
Definition at line 118 of file fullyconnected.h.
|
protected |
Definition at line 116 of file fullyconnected.h.