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
bad30bcf
Commit
bad30bcf
authored
Nov 23, 2012
by
Davis King
Browse files
Fixed grammar
parent
cc2de0e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples/svm_rank_ex.cpp
examples/svm_rank_ex.cpp
+4
-4
No files found.
examples/svm_rank_ex.cpp
View file @
bad30bcf
...
@@ -115,10 +115,10 @@ int main()
...
@@ -115,10 +115,10 @@ int main()
// set of non-relevant web pages.
// set of non-relevant web pages.
//
//
// To handle cases like this, we can simply give multiple ranking_pair
// To handle cases like this, we can simply give multiple ranking_pair
// instances to the trainer.
E
ach ranking_pair
representing the
// instances to the trainer.
Therefore, e
ach ranking_pair
would
// relevant/non-relevant sets for a particular query. An
example is
//
represent the
relevant/non-relevant sets for a particular query. An
// shown below (for simplicity, we reuse our data from above
to make 4
//
example is
shown below (for simplicity, we reuse our data from above
// identical "queries").
//
to make 4
identical "queries").
std
::
vector
<
ranking_pair
<
sample_type
>
>
queries
;
std
::
vector
<
ranking_pair
<
sample_type
>
>
queries
;
queries
.
push_back
(
data
);
queries
.
push_back
(
data
);
...
...
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