mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
fixed grammar and comment typos
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402423
This commit is contained in:
parent
1e6e74b1da
commit
8e8b04d975
@ -51,7 +51,7 @@ int main(int argc, char** argv)
|
||||
typedef graph<set<unsigned long>::compare_1b_c, set<unsigned long>::compare_1b_c>::kernel_1a_c join_tree_type;
|
||||
join_tree_type join_tree;
|
||||
|
||||
// Now we need populate the join_tree with data from our bayesian network. The next to
|
||||
// Now we need to populate the join_tree with data from our bayesian network. The next two
|
||||
// function calls do this. Explaining exactly what they do is outside the scope of this
|
||||
// example. Just think of them as filling join_tree with information that is useful
|
||||
// later on for dealing with our bayesian network.
|
||||
|
@ -115,7 +115,7 @@ int main()
|
||||
|
||||
cout << "gamma: " << gamma << " nu: " << nu;
|
||||
// Print out the cross validation accuracy for 3-fold cross validation using the current gamma and nu.
|
||||
// cross_validate_trainer() returns a column vector. The first element of the vector is the fraction
|
||||
// cross_validate_trainer() returns a row vector. The first element of the vector is the fraction
|
||||
// of +1 training examples correctly classified and the second number is the fraction of -1 training
|
||||
// examples correctly classified.
|
||||
cout << " cross validation accuracy: " << cross_validate_trainer(trainer, samples, labels, 3);
|
||||
|
Loading…
Reference in New Issue
Block a user