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
2018-09-20 06:27:52 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d157b7845731d58fbb550d282e299d58d2896c6
0d157b78
1 parent
38ac5753
Training, crossvalidation and testing structural domain dataset
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
clasificacion-automatica/structural-domain-dataset/training-crossvalidation-testing-dom.py
clasificacion-automatica/structural-domain-dataset/training-crossvalidation-testing-dom.py
View file @
0d157b7
...
...
@@ -292,9 +292,9 @@ if __name__ == "__main__":
oFile
.
write
(
'Classifier: {}
\n
'
.
format
(
args
.
classifier
))
oFile
.
write
(
'Kernel: {}
\n
'
.
format
(
args
.
kernel
))
oFile
.
write
(
'Accuracy: {}
\n
'
.
format
(
accuracy_score
(
y_test
,
y_pred
)))
oFile
.
write
(
'Precision: {}
\n
'
.
format
(
precision_score
(
y_test
,
y_pred
,
average
=
'
weighted
'
)))
oFile
.
write
(
'Recall: {}
\n
'
.
format
(
recall_score
(
y_test
,
y_pred
,
average
=
'
weighted
'
)))
oFile
.
write
(
'F-score: {}
\n
'
.
format
(
f1_score
(
y_test
,
y_pred
,
average
=
'
weighted
'
)))
oFile
.
write
(
'Precision: {}
\n
'
.
format
(
precision_score
(
y_test
,
y_pred
,
average
=
'
micro
'
)))
oFile
.
write
(
'Recall: {}
\n
'
.
format
(
recall_score
(
y_test
,
y_pred
,
average
=
'
micro
'
)))
oFile
.
write
(
'F-score: {}
\n
'
.
format
(
f1_score
(
y_test
,
y_pred
,
average
=
'
micro
'
)))
#oFile.write('Precision: {}\n'.format(precision_score(y_test, y_pred)))
#oFile.write('Recall: {}\n'.format(recall_score(y_test, y_pred)))
#oFile.write('F-score: {}\n'.format(f1_score(y_test, y_pred)))
...
...
Please
register
or
login
to post a comment