From b1c6556475a43bac092f0529239fbb429e83f647 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Sun, 31 May 2020 08:08:26 -0400 Subject: [PATCH] previous commit correction --- 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 278376fea..ec0dd27c8 100644 --- a/machine_learning/adaline_learning.cpp +++ b/machine_learning/adaline_learning.cpp @@ -232,7 +232,7 @@ void test2(double eta = 0.01) { double x0 = ((std::rand() % range) - range2) / 100.f; double x1 = ((std::rand() % range) - range2) / 100.f; X[i] = {x0, x1}; - Y[i] = (x0 + x1) > -1 ? 1 : -1; + Y[i] = (x0 + 3. * x1) > -1 ? 1 : -1; } std::cout << "------- Test 2 -------" << std::endl;