RBF< InputDataType, OutputDataType, Activation > Class Template Reference

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 &centres, 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...

 

Detailed Description


template
<
typename
InputDataType
=
arma::mat
,
typename
OutputDataType
=
arma::mat
,
typename
Activation
=
GaussianFunction
>

class mlpack::ann::RBF< InputDataType, OutputDataType, Activation >

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,

@article{Volume 51: Artificial Intelligence and Statistics,
author = {Qichao Que, Mikhail Belkin},
title = {Back to the Future: Radial Basis Function Networks Revisited},
year = {2016},
url = {http://proceedings.mlr.press/v51/que16.pdf},
}
Template Parameters
InputDataTypeType of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).
OutputDataTypeType of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).
ActivationType of the activation function (mlpack::ann::Gaussian).

Definition at line 94 of file layer_types.hpp.

Constructor & Destructor Documentation

◆ RBF() [1/2]

RBF ( )

Create the RBF object.

◆ RBF() [2/2]

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.

Parameters
inSizeThe number of input units.
outSizeThe number of output units.
centresThe centres calculated using k-means of data.
betasThe beta value to be used with centres.

Member Function Documentation

◆ Backward()

void Backward ( const arma::Mat< eT > &  ,
const arma::Mat< eT > &  ,
arma::Mat< eT > &   
)

Ordinary feed backward pass of the radial basis function.

◆ Delta() [1/2]

OutputDataType const& Delta ( ) const
inline

Get the detla.

Definition at line 109 of file radial_basis_function.hpp.

◆ Delta() [2/2]

OutputDataType& Delta ( )
inline

Modify the delta.

Definition at line 111 of file radial_basis_function.hpp.

◆ Forward()

void Forward ( const arma::Mat< eT > &  input,
arma::Mat< eT > &  output 
)

Ordinary feed forward pass of the radial basis function.

Parameters
inputInput data used for evaluating the specified function.
outputResulting output activation.

◆ InputParameter() [1/2]

InputDataType const& InputParameter ( ) const
inline

Get the parameters.

Get the input parameter.

Definition at line 98 of file radial_basis_function.hpp.

◆ InputParameter() [2/2]

InputDataType& InputParameter ( )
inline

Modify the input parameter.

Definition at line 100 of file radial_basis_function.hpp.

◆ InputShape()

size_t InputShape ( ) const
inline

Get the shape of the input.

Definition at line 120 of file radial_basis_function.hpp.

References RBF< InputDataType, OutputDataType, Activation >::serialize().

◆ InputSize()

size_t InputSize ( ) const
inline

Get the input size.

Definition at line 103 of file radial_basis_function.hpp.

◆ OutputParameter() [1/2]

OutputDataType const& OutputParameter ( ) const
inline

Get the output parameter.

Definition at line 92 of file radial_basis_function.hpp.

◆ OutputParameter() [2/2]

OutputDataType& OutputParameter ( )
inline

Modify the output parameter.

Definition at line 94 of file radial_basis_function.hpp.

◆ OutputSize()

size_t OutputSize ( ) const
inline

Get the output size.

Definition at line 106 of file radial_basis_function.hpp.

◆ serialize()

void serialize ( Archive &  ar,
const uint32_t   
)

◆ WeightSize()

size_t WeightSize ( ) const
inline

Get the size of the weights.

Definition at line 114 of file radial_basis_function.hpp.


The documentation for this class was generated from the following files: