From 0e285920aa9bd03fbd3220c7b13022e21cd649e6 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Sun, 31 May 2020 07:53:19 -0400 Subject: [PATCH] activation function not friend --- machine_learning/adaline_learning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine_learning/adaline_learning.cpp b/machine_learning/adaline_learning.cpp index 73a8f4633..278376fea 100644 --- a/machine_learning/adaline_learning.cpp +++ b/machine_learning/adaline_learning.cpp @@ -150,7 +150,7 @@ class adaline { << std::endl; } - friend int activation(double x) { return x > 0 ? 1 : -1; } + int activation(double x) { return x > 0 ? 1 : -1; } private: /**