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>
117 void serialize(Archive& ar,
const unsigned int );
127 OutputDataType delta;
130 OutputDataType outputParameter;
139 InputDataType centres;
142 InputDataType inputParameter;
145 OutputDataType distances;
152 #include "radial_basis_function_impl.hpp" OutputDataType const & OutputParameter() const
Get the output parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
OutputDataType const & Delta() const
Get the detla.
InputDataType & InputParameter()
Modify the input parameter.
OutputDataType & OutputParameter()
Modify the output parameter.
InputDataType const & InputParameter() const
Get the parameters.
RBF()
Create the RBF object.
void Backward(const arma::Mat< eT > &, const arma::Mat< eT > &, arma::Mat< eT > &)
Ordinary feed backward pass of the radial basis function.
size_t OutputSize() const
Get the output size.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
void Forward(const arma::Mat< eT > &input, arma::Mat< eT > &output)
Ordinary feed forward pass of the radial basis function.
size_t InputSize() const
Get the input size.
OutputDataType & Delta()
Modify the delta.