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
ada0db43
Commit
ada0db43
authored
Feb 07, 2020
by
WuNoah
Browse files
add change
parent
b966c248
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/classifierManager/scriptMerge/scriptClassifierMerge.py
View file @
ada0db43
...
...
@@ -82,6 +82,9 @@ class ScriptClassifierMerge(ScriptClassifier):
auc
=
np
.
nan
confusionMatrix
=
np
.
transpose
(
confusion_matrix
(
test_y
,
pred_y
))
# in case no success individus and confusion matrix will be [[x]]
if
(
len
(
confusionMatrix
)
==
1
):
confusionMatrix
=
np
.
array
([[
0
,
0
],
[
0
,
confusionMatrix
[
0
][
0
]]])
accuracy
=
accuracy_score
(
test_y
,
pred_y
)
resultWeight
=
self
.
getBestFeatures
(
model
,
self
.
classifier
.
features
,
featureMultiGroup
)
...
...
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