Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
91e8594b
Commit
91e8594b
authored
Jan 17, 2013
by
Davis King
Browse files
made examples slightly clearer
parent
d1904800
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
examples/rvm_ex.cpp
examples/rvm_ex.cpp
+2
-2
examples/svm_ex.cpp
examples/svm_ex.cpp
+2
-2
No files found.
examples/rvm_ex.cpp
View file @
91e8594b
...
@@ -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
<<
"
\n
number of relevance vectors in our learned_function is "
cout
<<
"
\n
number 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
<<
"
\n
number of relevance vectors in our learned_pfunct is "
cout
<<
"
\n
number 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
;
...
...
examples/svm_ex.cpp
View file @
91e8594b
...
@@ -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
<<
"
\n
number of support vectors in our learned_function is "
cout
<<
"
\n
number 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
<<
"
\n
number of support vectors in our learned_pfunct is "
cout
<<
"
\n
number 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment