Update src/mlpack/methods/ann/layer/radial_basis_function_impl.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Omar Shrit
2024-01-27 16:29:59 +01:00
committed by GitHub
co-authored by Ryan Curtin
parent 97def6abfe
commit 83166f07e9
@@ -41,8 +41,7 @@ RBFType<MatType, Activation>::RBFType(
{
double maxDis = 0;
MatType temp = centres.each_col() - centres.col(i);
maxDis = arma::accu(arma::max(pow(sum(
pow((temp), 2), 0), 0.5).t()));
maxDis = arma::accu(arma::max(pow(sum(pow((temp), 2), 0), 0.5).t()));
if (maxDis > sigmas)
sigmas = maxDis;
}