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-28 05:04:38 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
18a1544a506cae5aef329434c8b44d44ec8fce23
18a1544a
1 parent
f18f366c
Training, crossvalidation and testing dataset
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
clasificacion-automatica/binding-thrombin-dataset/imb-training-testing-binding-thrombin.py
clasificacion-automatica/binding-thrombin-dataset/imb-training-testing-binding-thrombin.py
View file @
18a1544
...
...
@@ -215,7 +215,7 @@ if __name__ == "__main__":
print
(
"Saving report..."
)
with
open
(
os
.
path
.
join
(
args
.
outputReportPath
,
args
.
outputReportFile
),
mode
=
'w'
,
encoding
=
'utf8'
)
as
oFile
:
oFile
.
write
(
'********** EVALUATION REPORT **********
\n
'
)
oFile
.
write
(
'Classifier: {}
\n
'
.
format
(
args
.
myC
lassifier
))
oFile
.
write
(
'Classifier: {}
\n
'
.
format
(
args
.
c
lassifier
))
oFile
.
write
(
'Kernel: {}
\n
'
.
format
(
args
.
kernel
))
oFile
.
write
(
'Training score: {}
\n
'
.
format
(
myClassifier
.
score
()))
oFile
.
write
(
'Accuracy: {}
\n
'
.
format
(
accuracy_score
(
y_test
,
y_pred
)))
...
...
Please
register
or
login
to post a comment