Tesseract
3.02
|
#include <neural_net.h>
Classes | |
struct | Node |
struct | WeightedNode |
Public Member Functions | |
NeuralNet () | |
virtual | ~NeuralNet () |
template<typename Type > | |
bool | FeedForward (const Type *inputs, Type *outputs) |
template<typename Type > | |
bool | GetNetOutput (const Type *inputs, int output_id, Type *output) |
int | in_cnt () const |
int | out_cnt () const |
Static Public Member Functions | |
static NeuralNet * | FromFile (const string file_name) |
static NeuralNet * | FromInputBuffer (InputFileBuffer *ib) |
Protected Member Functions | |
void | Init () |
void | Clear () |
template<class ReadBuffType > | |
bool | ReadBinary (ReadBuffType *input_buff) |
bool | SetConnection (int from, int to) |
bool | CreateFastNet () |
float * | AllocWgt (int wgt_cnt) |
template<typename Type > | |
bool | FastFeedForward (const Type *inputs, Type *outputs) |
template<typename Type > | |
bool | FastGetNetOutput (const Type *inputs, int output_id, Type *output) |
Protected Attributes | |
bool | read_only_ |
int | in_cnt_ |
int | out_cnt_ |
int | neuron_cnt_ |
int | wts_cnt_ |
Neuron * | neurons_ |
int | alloc_wgt_cnt_ |
vector< vector< float > * > | wts_vec_ |
bool | auto_encoder_ |
vector< float > | inputs_max_ |
vector< float > | inputs_min_ |
vector< float > | inputs_mean_ |
vector< float > | inputs_std_dev_ |
vector< Node > | fast_nodes_ |
Static Protected Attributes | |
static const int | kWgtChunkSize = 0x10000 |
static const unsigned int | kNetSignature = 0xFEFEABD0 |
Definition at line 22 of file neural_net.h.
tesseract::NeuralNet::NeuralNet | ( | ) |
Definition at line 15 of file neural_net.cpp.
|
virtual |
Definition at line 19 of file neural_net.cpp.
|
protected |
Definition at line 189 of file neural_net.cpp.
|
inlineprotected |
Definition at line 100 of file neural_net.h.
|
protected |
Definition at line 124 of file neural_net.cpp.
|
protected |
Definition at line 52 of file neural_net.cpp.
|
protected |
Definition at line 231 of file neural_net.cpp.
template bool tesseract::NeuralNet::FeedForward | ( | const Type * | inputs, |
Type * | outputs | ||
) |
Definition at line 79 of file neural_net.cpp.
|
static |
Definition at line 204 of file neural_net.cpp.
|
static |
template bool tesseract::NeuralNet::GetNetOutput | ( | const Type * | inputs, |
int | output_id, | ||
Type * | output | ||
) |
Definition at line 265 of file neural_net.cpp.
|
inline |
Definition at line 40 of file neural_net.h.
|
protected |
Definition at line 34 of file neural_net.cpp.
|
inline |
Definition at line 41 of file neural_net.h.
|
inlineprotected |
Definition at line 106 of file neural_net.h.
|
protected |
Definition at line 112 of file neural_net.cpp.
|
protected |
Definition at line 81 of file neural_net.h.
|
protected |
Definition at line 85 of file neural_net.h.
|
protected |
Definition at line 96 of file neural_net.h.
|
protected |
Definition at line 63 of file neural_net.h.
|
protected |
Definition at line 87 of file neural_net.h.
|
protected |
Definition at line 91 of file neural_net.h.
|
protected |
Definition at line 89 of file neural_net.h.
|
protected |
Definition at line 93 of file neural_net.h.
|
staticprotected |
Definition at line 79 of file neural_net.h.
|
staticprotected |
Definition at line 76 of file neural_net.h.
|
protected |
Definition at line 67 of file neural_net.h.
|
protected |
Definition at line 71 of file neural_net.h.
|
protected |
Definition at line 65 of file neural_net.h.
|
protected |
Definition at line 61 of file neural_net.h.
|
protected |
Definition at line 69 of file neural_net.h.
|
protected |
Definition at line 83 of file neural_net.h.