Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
lcg-bioinfoI-bionlp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2019-04-09 13:01:08 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
951089e525dfcfd34c9fb6fd4167d1759efe91e2
951089e5
1 parent
1e93ca39
Iris dataset for automatic clasification
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
clasificacion-automatica/iris-dataset/trainingEvaluation_Iris_v1.py
clasificacion-automatica/iris-dataset/trainingEvaluation_Iris_v1.py
View file @
951089e
...
...
@@ -162,8 +162,9 @@ if __name__ == "__main__":
oFile
.
write
(
str
(
confusion_matrix
(
trueEvaluationClasses
,
y_pred
))
+
'
\n
'
)
oFile
.
write
(
'Classification report:
\n
'
)
oFile
.
write
(
classification_report
(
trueEvaluationClasses
,
y_pred
)
+
'
\n
'
)
#if options.classifier == "Perceptron":
oFile
.
write
(
"{}"
.
format
(
confidence_scores
))
if
options
.
classifier
in
[
"Perceptron"
,
"SVM"
]:
oFile
.
write
(
'Confidence scores:
\n
'
)
oFile
.
write
(
"{}"
.
format
(
confidence_scores
))
print
(
" Saving test report done!"
)
...
...
Please
register
or
login
to post a comment