mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Updated this example to use the new svm_pegasos interface.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402929
This commit is contained in:
parent
c6cb4d81ce
commit
c123f0c14e
@ -50,7 +50,14 @@ int main()
|
||||
// description of what these parameters are.
|
||||
trainer.set_lambda(0.00001);
|
||||
trainer.set_kernel(kernel_type(0.005));
|
||||
trainer.set_tolerance(0.2);
|
||||
|
||||
// Set the maximum number of support vectors we want the trainer object to use
|
||||
// in representing the decision function it is going to learn. In general,
|
||||
// supplying a bigger number here will only ever give you a more accurate
|
||||
// answer. However, giving a smaller number will make the algorithm run
|
||||
// faster and decision rules that involve fewer support vectors also take
|
||||
// less time to evaluate.
|
||||
trainer.set_max_num_sv(10);
|
||||
|
||||
std::vector<sample_type> samples;
|
||||
std::vector<double> labels;
|
||||
|
Loading…
Reference in New Issue
Block a user