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; }
128 template<
typename Archive>
129 void serialize(Archive& ar,
const uint32_t );
139 OutputDataType delta;
142 OutputDataType outputParameter;
151 InputDataType centres;
154 InputDataType inputParameter;
157 OutputDataType distances;
164 #include "radial_basis_function_impl.hpp" OutputDataType const & OutputParameter() const
Get the output parameter.
size_t WeightSize() const
Get the size of the weights.
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.
void serialize(Archive &ar, const uint32_t)
Serialize the layer.
InputDataType const & InputParameter() const
Get the parameters.
RBF()
Create the RBF object.
size_t InputShape() const
Get the shape of the input.
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 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.