Update src/mlpack/methods/ann/activation_functions/gaussian_function.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Adam Kropp
2023-11-13 14:27:07 -05:00
committed by GitHub
co-authored by Ryan Curtin
parent e3a293b157
commit ae578a7347
@@ -60,7 +60,6 @@ class GaussianFunction
*/
static double Deriv(const double x, const double y)
{
// return 2 * -y * std::exp(-1 * std::pow(y, 2));
return -2 * x * y;
}