tesseract::NeuralNet Class Reference

#include <neural_net.h>

List of all members.

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 NeuralNetFromFile (const string file_name)
static NeuralNetFromInputBuffer (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_
Neuronneurons_
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< Nodefast_nodes_

Static Protected Attributes

static const int kWgtChunkSize = 0x10000
static const unsigned int kNetSignature = 0xFEFEABD0

Constructor & Destructor Documentation

tesseract::NeuralNet::NeuralNet (  ) 
tesseract::NeuralNet::~NeuralNet (  )  [virtual]

Member Function Documentation

float * tesseract::NeuralNet::AllocWgt ( int  wgt_cnt  )  [protected]
void tesseract::NeuralNet::Clear (  )  [inline, protected]
bool tesseract::NeuralNet::CreateFastNet (  )  [protected]
template<typename Type >
bool tesseract::NeuralNet::FastFeedForward ( const Type *  inputs,
Type *  outputs 
) [inline, protected]
template<typename Type >
bool tesseract::NeuralNet::FastGetNetOutput ( const Type *  inputs,
int  output_id,
Type *  output 
) [inline, protected]
template<typename Type >
bool tesseract::NeuralNet::FeedForward ( const Type *  inputs,
Type *  outputs 
) [inline]
NeuralNet * tesseract::NeuralNet::FromFile ( const string  file_name  )  [static]
NeuralNet * tesseract::NeuralNet::FromInputBuffer ( InputFileBuffer ib  )  [static]
template<typename Type >
bool tesseract::NeuralNet::GetNetOutput ( const Type *  inputs,
int  output_id,
Type *  output 
) [inline]
int tesseract::NeuralNet::in_cnt (  )  const [inline]
void tesseract::NeuralNet::Init (  )  [protected]
int tesseract::NeuralNet::out_cnt (  )  const [inline]
template<class ReadBuffType >
bool tesseract::NeuralNet::ReadBinary ( ReadBuffType *  input_buff  )  [inline, protected]
bool tesseract::NeuralNet::SetConnection ( int  from,
int  to 
) [protected]

Member Data Documentation

vector<float> tesseract::NeuralNet::inputs_max_ [protected]
vector<float> tesseract::NeuralNet::inputs_mean_ [protected]
vector<float> tesseract::NeuralNet::inputs_min_ [protected]
vector<float> tesseract::NeuralNet::inputs_std_dev_ [protected]
const unsigned int tesseract::NeuralNet::kNetSignature = 0xFEFEABD0 [static, protected]
const int tesseract::NeuralNet::kWgtChunkSize = 0x10000 [static, protected]
vector<vector<float> *> tesseract::NeuralNet::wts_vec_ [protected]

The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:27 2012 for Tesseract by  doxygen 1.6.3