mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added some clarifying comments to the svm example and a version number to
the about window in the bayes net gui. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402223
This commit is contained in:
parent
0c356e015d
commit
db3f3c17ae
@ -626,6 +626,7 @@ on_menu_help_about (
|
|||||||
{
|
{
|
||||||
message_box("About","This application is the GUI front end to the dlib C++ Library's\n"
|
message_box("About","This application is the GUI front end to the dlib C++ Library's\n"
|
||||||
"Bayesian Network inference utilities\n\n"
|
"Bayesian Network inference utilities\n\n"
|
||||||
|
"Version 1.1\n\n"
|
||||||
"See http://dclib.sourceforge.net for updates");
|
"See http://dclib.sourceforge.net for updates");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,6 +144,7 @@ int main()
|
|||||||
// We can also train a decision function that reports a well conditioned probability instead of just a number
|
// We can also train a decision function that reports a well conditioned probability instead of just a number
|
||||||
// > 0 for the +1 class and < 0 for the -1 class. An example of doing that follows:
|
// > 0 for the +1 class and < 0 for the -1 class. An example of doing that follows:
|
||||||
probabilistic_decision_function<kernel_type> learned_probabilistic_decision_function = svm_nu_train_prob(samples, labels, kernel_type(0.1), 0.1, 3);
|
probabilistic_decision_function<kernel_type> learned_probabilistic_decision_function = svm_nu_train_prob(samples, labels, kernel_type(0.1), 0.1, 3);
|
||||||
|
// Now we have a function that returns the probability that a given sample is of the +1 class.
|
||||||
|
|
||||||
// print out the number of support vectors in the resulting decision function. (it should be the same as in the one above)
|
// print out the number of support vectors in the resulting decision function. (it should be the same as in the one above)
|
||||||
cout << "\nnumber of support vectors in our learned_probabilistic_decision_function is "
|
cout << "\nnumber of support vectors in our learned_probabilistic_decision_function is "
|
||||||
|
Loading…
Reference in New Issue
Block a user