Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hertz-Lab
Research
Intelligent Museum
Language Identifier
Commits
43628957
Commit
43628957
authored
Dec 17, 2021
by
Dan Wilcox
Browse files
ok, actually print confidence in percentage
parent
3f0d98e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ofApp.cpp
View file @
43628957
...
...
@@ -100,7 +100,6 @@ void ofApp::setup() {
volHistory
.
assign
(
400
,
0.0
);
// print language labels we know
ofLogVerbose
(
PACKAGE
)
<<
"From src/Labels.h:"
;
ofLogVerbose
(
PACKAGE
)
<<
"----> detected languages"
;
for
(
const
auto
&
label
:
labelsMap
)
{
ofLogVerbose
(
PACKAGE
)
<<
label
.
second
;
...
...
@@ -195,7 +194,7 @@ void ofApp::update() {
// look up label
ofLogVerbose
(
PACKAGE
)
<<
"label: "
<<
labelsMap
[
argMax
];
ofLogVerbose
(
PACKAGE
)
<<
"confidence: "
<<
ofToString
(
prob
,
2
);
ofLogVerbose
(
PACKAGE
)
<<
"confidence: "
<<
ofToString
(
prob
*
100
,
2
);
ofLogVerbose
(
PACKAGE
)
<<
"============================"
;
// release the trigger signal and emit enable
...
...
Write
Preview
Supports
Markdown
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