クラス テンプレート rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >

Back Propagetion Neural Network [詳細]

#include <bpn1.h>

すべてのメンバ一覧

Public 型

typedef double value_type
 typedef of the value type
typedef boost::array< value_type,
INPUT > 
input_array
 typedef of the input array type that uses template parameter.
typedef boost::array< value_type,
OUTPUT > 
output_array
 typedef of the output array type that uses template parameter.

Public メソッド

 BPNetwork1 ()
 default constructor
 BPNetwork1 (const value_type &eta, const value_type &alpha)
 create with learning parameter
template<typename RNG>
 BPNetwork1 (const value_type &eta, const value_type &alpha, RNG &rng)
 create with random number generator
void init ()
 init member variables
template<typename RNG>
void randomize (RNG &rng)
 create unit connection randomly
void propagate (const input_array &input, output_array &output) const
 simulate network.
value_type train (const input_array &input, const output_array &teacher)
 update unit connection weights using teacher signal
bool read (std::istream &is)
 read network structure from input stream.
std::ostream & print (std::ostream &os) const
 put network structure to stream by "one" line


説明

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
class rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >

Back Propagetion Neural Network

This class can take only one hidden layer, but unit number and activation function can be specified by template parameters.


コンストラクタとデストラクタ

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::BPNetwork1 (  )  [inline]

default constructor

default training parameter is set.

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::BPNetwork1 ( const value_type eta,
const value_type alpha 
) [inline]

create with learning parameter

引数:
eta training parameter
alpha training parameter

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
template<typename RNG>
rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::BPNetwork1 ( const value_type eta,
const value_type alpha,
RNG &  rng 
) [inline]

create with random number generator

引数:
eta training parameter
alpha training parameter
rng referenct to the random number generator object


関数

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
template<typename RNG>
void rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::randomize ( RNG &  rng  )  [inline]

create unit connection randomly

引数:
rng referenct to the random number generator object

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
void rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::propagate ( const input_array input,
output_array output 
) const [inline]

simulate network.

引数:
input input data
output reference to the data holder variable

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
value_type rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::train ( const input_array input,
const output_array teacher 
) [inline]

update unit connection weights using teacher signal

引数:
input input data
teacher teaching signal data

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
bool rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::read ( std::istream &  is  )  [inline]

read network structure from input stream.

引数:
is reference to the input stream
戻り値:
true if successfully ended.

template<std::size_t INPUT, std::size_t HIDDEN, std::size_t OUTPUT, typename FuncH = SigmoidFunc, typename FuncO = SigmoidFunc>
std::ostream& rcsc::BPNetwork1< INPUT, HIDDEN, OUTPUT, FuncH, FuncO >::print ( std::ostream &  os  )  const [inline]

put network structure to stream by "one" line

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:24 2008に生成されました。  doxygen 1.5.0