Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
60f5e5ef
Commit
60f5e5ef
authored
Aug 24, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #327 from lluisgomez:svt_dataset
parents
f9dab616
be927d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tr_svt_benchmark.cpp
modules/datasets/samples/tr_svt_benchmark.cpp
+6
-4
No files found.
modules/datasets/samples/tr_svt_benchmark.cpp
View file @
60f5e5ef
...
...
@@ -244,6 +244,8 @@ int main(int argc, char *argv[])
continue
;
}
std
::
transform
(
words
[
j
].
begin
(),
words
[
j
].
end
(),
words
[
j
].
begin
(),
::
toupper
);
if
(
find
(
example
->
lex
.
begin
(),
example
->
lex
.
end
(),
words
[
j
])
==
example
->
lex
.
end
())
{
continue
;
...
...
@@ -286,18 +288,18 @@ int main(int argc, char *argv[])
f1Each
.
push_back
(
f1
);
}
/*
double p = 1.0*returnedCorrectNum/returnedNum;
double
p
=
1.0
*
returnedCorrectNum
/
returnedNum
;
double
r
=
1.0
*
returnedCorrectNum
/
correctNum
;
double
f1
=
2
*
(
p
*
r
)
/
(
p
+
r
);
printf("f1: %f\n", f1);
*/
printf
(
"f1: %f
\n
"
,
f1
);
double
f1
=
0.0
;
/*
double f1 = 0.0;
for (vector<double>::iterator it=f1Each.begin(); it!=f1Each.end(); ++it)
{
f1 += *it;
}
f1 /= f1Each.size();
printf
(
"mean f1: %f
\n
"
,
f1
);
printf("mean f1: %f\n", f1);
*/
return
0
;
}
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