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
Antoine PIGEAU
2015-Hubble-UserProfiles
Commits
51109df8
Commit
51109df8
authored
Nov 08, 2021
by
Antoine PIGEAU
Browse files
update experiment
parent
b215c622
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/main/ocr/classificationExperiment.py
View file @
51109df8
...
...
@@ -83,9 +83,9 @@ if __name__ == "__main__":
classifier
.
features
=
ConstantFeature
.
BEST_LR_FEATURE_ALL_COURSES
[
course
.
getCourseId
()][
25
]
result
=
classifier
.
predictionTaskNTimes
(
course
,
whereToCut
=
25
,
ntime
=
10
,
cache
=
False
)
whereToCut
=
25
,
ntime
=
10
,
cache
=
False
)
print
(
"accuracy: "
,
np
.
nanmean
(
result
.
accuracies
))
print
(
"std accuracy: "
,
np
.
std
(
result
.
accuracies
))
print
(
"confusion Matrix:
\n
"
,
result
.
avgConfusionMatrix
)
...
...
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