Commit 6f0f59de authored by Davis King's avatar Davis King

Added a call to set_c() to this example.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403524
parent c1343f07
...@@ -48,6 +48,9 @@ int main() ...@@ -48,6 +48,9 @@ int main()
// Lets also use the svm trainer specially optimized for the linear_kernel and // Lets also use the svm trainer specially optimized for the linear_kernel and
// sparse_linear_kernel. // sparse_linear_kernel.
svm_c_linear_trainer<kernel_type> linear_trainer; svm_c_linear_trainer<kernel_type> linear_trainer;
// This trainer solves the "C" formulation of the SVM. See the documentation for
// details.
linear_trainer.set_c(10);
std::vector<sample_type> samples; std::vector<sample_type> samples;
std::vector<double> labels; std::vector<double> labels;
......
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