mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Improved a print statement.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404108
This commit is contained in:
parent
7fb3219659
commit
33d87fe5ec
@ -14,6 +14,7 @@
|
||||
#include <cfloat>
|
||||
|
||||
using namespace dlib;
|
||||
using namespace std;
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
@ -341,11 +342,12 @@ svr_test (
|
||||
gamma <= gamma_range.get_max_value();
|
||||
gamma = gamma_range.get_next_value (gamma))
|
||||
{
|
||||
cout << "test with svr-C: " << svr_c << " gamma: "<< gamma << flush;
|
||||
double cv_error;
|
||||
trainer.set_kernel (kernel_type (gamma));
|
||||
cv_error = cross_validate_regression_trainer (trainer,
|
||||
dense_samples, labels, 10);
|
||||
printf ("%3.6f %3.6f %3.9f\n", svr_c, gamma, cv_error);
|
||||
cout << " 10-fold-MSE: "<< cv_error << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user