Commit f197611d authored by Davis King's avatar Davis King

Grammar and general cleanup.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402914
parent 8fed4f4c
...@@ -75,7 +75,7 @@ int main() ...@@ -75,7 +75,7 @@ int main()
// save this sample so we can use it with the batch training examples below // save this sample so we can use it with the batch training examples below
samples.push_back(sample); samples.push_back(sample);
labels.push_back(1); labels.push_back(+1);
} }
else else
{ {
...@@ -89,7 +89,7 @@ int main() ...@@ -89,7 +89,7 @@ int main()
} }
// Now we have trained our SVM. Lets see how well it did. // Now we have trained our SVM. Lets see how well it did.
// each of these statements prints out the output of the SVM given a particular sample. // Each of these statements prints out the output of the SVM given a particular sample.
// The SVM outputs a number > 0 if a sample is predicted to be in the +1 class and < 0 // The SVM outputs a number > 0 if a sample is predicted to be in the +1 class and < 0
// if a sample is predicted to be in the -1 class. // if a sample is predicted to be in the -1 class.
...@@ -109,7 +109,7 @@ int main() ...@@ -109,7 +109,7 @@ int main()
// The previous parts of this example program showed you how to perform online training // The previous part of this example program showed you how to perform online training
// with the pegasos algorithm. But it is often the case that you have a dataset and you // with the pegasos algorithm. But it is often the case that you have a dataset and you
// just want to perform batch learning on that dataset and get the resulting decision // just want to perform batch learning on that dataset and get the resulting decision
// function. To support this the dlib library provides functions for converting an online // function. To support this the dlib library provides functions for converting an online
......
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