diff --git a/machine_learning/adaline_learning.cpp b/machine_learning/adaline_learning.cpp index 18c79ecbb..6bfa2671d 100644 --- a/machine_learning/adaline_learning.cpp +++ b/machine_learning/adaline_learning.cpp @@ -53,8 +53,8 @@ class adaline { 1); // additional weight is for the constant bias term // initialize with random weights in the range [-50, 49] - for (int i = 0; i < weights.size(); i++) - weights[i] = (static_cast(std::rand() % 100) - 50); + for (int i = 0; i < weights.size(); i++) weights[i] = 1.f; + // weights[i] = (static_cast(std::rand() % 100) - 50); } /**