Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
196bf7a1
Commit
196bf7a1
authored
Feb 11, 2020
by
WuNoah
Browse files
change
parent
ada0db43
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/classifierManager/scriptMerge/scriptClassifierMerge.py
View file @
196bf7a1
...
...
@@ -83,7 +83,7 @@ class ScriptClassifierMerge(ScriptClassifier):
confusionMatrix
=
np
.
transpose
(
confusion_matrix
(
test_y
,
pred_y
))
# in case no success individus and confusion matrix will be [[x]]
if
(
len
(
confusionMatrix
)
==
1
):
if
(
len
(
confusionMatrix
)
==
0
):
confusionMatrix
=
np
.
array
([[
0
,
0
],
[
0
,
confusionMatrix
[
0
][
0
]]])
accuracy
=
accuracy_score
(
test_y
,
pred_y
)
...
...
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