Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
91e8594b
Commit
91e8594b
authored
Jan 18, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made examples slightly clearer
parent
d1904800
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rvm_ex.cpp
examples/rvm_ex.cpp
+2
-2
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()
// print out the number of relevance vectors in the resulting decision function
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
sample_type
sample
;
...
...
@@ -179,7 +179,7 @@ int main()
// print out the number of relevance vectors in the resulting decision function.
// (it should be the same as in the one above)
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
(
1
)
=
2
;
...
...
examples/svm_ex.cpp
View file @
91e8594b
...
...
@@ -144,7 +144,7 @@ int main()
// print out the number of support vectors in the resulting decision function
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
sample_type
sample
;
...
...
@@ -180,7 +180,7 @@ int main()
// print out the number of support vectors in the resulting decision function.
// (it should be the same as in the one above)
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
(
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