Implementation of the Radial Basis Function layer. More...
Public Member Functions | |
RBF () | |
Create the RBF object. More... | |
RBF (const size_t inSize, const size_t outSize, arma::mat ¢res, double betas=0) | |
Create the Radial Basis Function layer object using the specified parameters. More... | |
template < typename eT > | |
void | Backward (const arma::Mat< eT > &, const arma::Mat< eT > &, arma::Mat< eT > &) |
Ordinary feed backward pass of the radial basis function. More... | |
OutputDataType const & | Delta () const |
Get the detla. More... | |
OutputDataType & | Delta () |
Modify the delta. More... | |
template < typename eT > | |
void | Forward (const arma::Mat< eT > &input, arma::Mat< eT > &output) |
Ordinary feed forward pass of the radial basis function. More... | |
InputDataType const & | InputParameter () const |
Get the parameters. More... | |
InputDataType & | InputParameter () |
Modify the input parameter. More... | |
size_t | InputShape () const |
Get the shape of the input. More... | |
size_t | InputSize () const |
Get the input size. More... | |
OutputDataType const & | OutputParameter () const |
Get the output parameter. More... | |
OutputDataType & | OutputParameter () |
Modify the output parameter. More... | |
size_t | OutputSize () const |
Get the output size. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the layer. More... | |
size_t | WeightSize () const |
Get the size of the weights. More... | |
Implementation of the Radial Basis Function layer.
The RBF class when use with a non-linear activation function acts as a Radial Basis Function which can be used with Feed-Forward neural network.
For more information, refer to the following paper,
InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Activation | Type of the activation function (mlpack::ann::Gaussian). |
Definition at line 100 of file layer_types.hpp.
RBF | ( | const size_t | inSize, |
const size_t | outSize, | ||
arma::mat & | centres, | ||
double | betas = 0 |
||
) |
Create the Radial Basis Function layer object using the specified parameters.
inSize | The number of input units. |
outSize | The number of output units. |
centres | The centres calculated using k-means of data. |
betas | The beta value to be used with centres. |
void Backward | ( | const arma::Mat< eT > & | , |
const arma::Mat< eT > & | , | ||
arma::Mat< eT > & | |||
) |
Ordinary feed backward pass of the radial basis function.
|
inline |
Get the detla.
Definition at line 109 of file radial_basis_function.hpp.
|
inline |
Modify the delta.
Definition at line 111 of file radial_basis_function.hpp.
void Forward | ( | const arma::Mat< eT > & | input, |
arma::Mat< eT > & | output | ||
) |
Ordinary feed forward pass of the radial basis function.
input | Input data used for evaluating the specified function. |
output | Resulting output activation. |
|
inline |
Get the parameters.
Get the input parameter.
Definition at line 98 of file radial_basis_function.hpp.
|
inline |
Modify the input parameter.
Definition at line 100 of file radial_basis_function.hpp.
|
inline |
Get the shape of the input.
Definition at line 120 of file radial_basis_function.hpp.
References RBF< InputDataType, OutputDataType, Activation >::serialize().
|
inline |
Get the input size.
Definition at line 103 of file radial_basis_function.hpp.
|
inline |
Get the output parameter.
Definition at line 92 of file radial_basis_function.hpp.
|
inline |
Modify the output parameter.
Definition at line 94 of file radial_basis_function.hpp.
|
inline |
Get the output size.
Definition at line 106 of file radial_basis_function.hpp.
void serialize | ( | Archive & | ar, |
const uint32_t | |||
) |
Serialize the layer.
Referenced by RBF< InputDataType, OutputDataType, Activation >::InputShape().
|
inline |
Get the size of the weights.
Definition at line 114 of file radial_basis_function.hpp.