Commit e446ffb1 authored by Davis King's avatar Davis King

Fixed incorrect comment.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402924
parent b81806fc
...@@ -146,7 +146,7 @@ namespace dlib ...@@ -146,7 +146,7 @@ namespace dlib
if (y*w.inner_product(x) < 1) if (y*w.inner_product(x) < 1)
{ {
// compute: w = (1-learning_rate*lambda) + y*learning_rate*x // compute: w = (1-learning_rate*lambda)*w + y*learning_rate*x
w.train(x, 1 - learning_rate*lambda, y*learning_rate); w.train(x, 1 - learning_rate*lambda, y*learning_rate);
scalar_type wnorm = std::sqrt(w.squared_norm()); scalar_type wnorm = std::sqrt(w.squared_norm());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment