Commit 91e8594b authored by Davis King's avatar Davis King

made examples slightly clearer

parent d1904800
...@@ -143,7 +143,7 @@ int main() ...@@ -143,7 +143,7 @@ int main()
// print out the number of relevance vectors in the resulting decision function // print out the number of relevance vectors in the resulting decision function
cout << "\nnumber of relevance vectors in our learned_function is " cout << "\nnumber of relevance vectors in our learned_function is "
<< learned_function.function.basis_vectors.nr() << endl; << learned_function.function.basis_vectors.size() << endl;
// now lets try this decision_function on some samples we haven't seen before // now lets try this decision_function on some samples we haven't seen before
sample_type sample; sample_type sample;
...@@ -179,7 +179,7 @@ int main() ...@@ -179,7 +179,7 @@ int main()
// print out the number of relevance vectors in the resulting decision function. // print out the number of relevance vectors in the resulting decision function.
// (it should be the same as in the one above) // (it should be the same as in the one above)
cout << "\nnumber of relevance vectors in our learned_pfunct is " cout << "\nnumber of relevance vectors in our learned_pfunct is "
<< learned_pfunct.function.decision_funct.basis_vectors.nr() << endl; << learned_pfunct.function.decision_funct.basis_vectors.size() << endl;
sample(0) = 3.123; sample(0) = 3.123;
sample(1) = 2; sample(1) = 2;
......
...@@ -144,7 +144,7 @@ int main() ...@@ -144,7 +144,7 @@ int main()
// print out the number of support vectors in the resulting decision function // print out the number of support vectors in the resulting decision function
cout << "\nnumber of support vectors in our learned_function is " cout << "\nnumber of support vectors in our learned_function is "
<< learned_function.function.basis_vectors.nr() << endl; << learned_function.function.basis_vectors.size() << endl;
// now lets try this decision_function on some samples we haven't seen before // now lets try this decision_function on some samples we haven't seen before
sample_type sample; sample_type sample;
...@@ -180,7 +180,7 @@ int main() ...@@ -180,7 +180,7 @@ int main()
// print out the number of support vectors in the resulting decision function. // print out the number of support vectors in the resulting decision function.
// (it should be the same as in the one above) // (it should be the same as in the one above)
cout << "\nnumber of support vectors in our learned_pfunct is " cout << "\nnumber of support vectors in our learned_pfunct is "
<< learned_pfunct.function.decision_funct.basis_vectors.nr() << endl; << learned_pfunct.function.decision_funct.basis_vectors.size() << endl;
sample(0) = 3.123; sample(0) = 3.123;
sample(1) = 2; sample(1) = 2;
......
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