13#ifndef MLPACK_METHODS_ANN_LAYER_RBF_HPP
14#define MLPACK_METHODS_ANN_LAYER_RBF_HPP
49 typename InputDataType = arma::mat,
50 typename OutputDataType = arma::mat,
51 typename Activation = GaussianFunction
68 RBF(
const size_t inSize,
80 void Forward(
const arma::Mat<eT>& input, arma::Mat<eT>& output);
88 const arma::Mat<eT>& ,
109 OutputDataType
const&
Delta()
const {
return delta; }
111 OutputDataType&
Delta() {
return delta; }
116 template<
typename Archive>
127 OutputDataType delta;
130 OutputDataType outputParameter;
139 InputDataType centres;
142 InputDataType inputParameter;
145 OutputDataType distances;
152#include "radial_basis_function_impl.hpp"
Implementation of the Radial Basis Function layer.
OutputDataType const & Delta() const
Get the detla.
void Backward(const arma::Mat< eT > &, const arma::Mat< eT > &, arma::Mat< eT > &)
Ordinary feed backward pass of the radial basis function.
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Ordinary feed forward pass of the radial basis function.
InputDataType & InputParameter()
Modify the input parameter.
OutputDataType const & OutputParameter() const
Get the output parameter.
size_t InputSize() const
Get the input size.
size_t OutputSize() const
Get the output size.
InputDataType const & InputParameter() const
Get the parameters.
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.
OutputDataType & OutputParameter()
Modify the output parameter.
RBF()
Create the RBF object.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & Delta()
Modify the delta.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.