mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed incorrect comment.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402924
This commit is contained in:
parent
b81806fce2
commit
e446ffb124
@ -146,7 +146,7 @@ namespace dlib
|
||||
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);
|
||||
|
||||
scalar_type wnorm = std::sqrt(w.squared_norm());
|
||||
|
Loading…
Reference in New Issue
Block a user