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 07:45:11 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
666a3134723c46a7fdd7f432dcaaa8bea9214597
666a3134
1 parent
367fcf6a
Training, crossvalidation and testing dataset
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
clasificacion-automatica/binding-thrombin-dataset/training-crossvalidation-testing-binding-thrombin.py
clasificacion-automatica/structural-domain-dataset/training-crossvalidation-testing-dom.py
clasificacion-automatica/binding-thrombin-dataset/training-crossvalidation-testing-binding-thrombin.py
View file @
666a313
...
...
@@ -254,6 +254,7 @@ if __name__ == "__main__":
oFile
.
write
(
str
(
confusion_matrix
(
y_test
,
y_pred
))
+
'
\n
'
)
oFile
.
write
(
'Classification report:
\n
'
)
oFile
.
write
(
classification_report
(
y_test
,
y_pred
)
+
'
\n
'
)
oFile
.
write
(
'Best parameters:
\n
'
)
for
param
in
sorted
(
best_parameters
.
keys
()):
oFile
.
write
(
"
\t
%
s:
%
r
\n
"
%
(
param
,
best_parameters
[
param
]))
print
(
" Done!"
)
...
...
clasificacion-automatica/structural-domain-dataset/training-crossvalidation-testing-dom.py
View file @
666a313
...
...
@@ -302,6 +302,7 @@ if __name__ == "__main__":
oFile
.
write
(
str
(
confusion_matrix
(
y_test
,
y_pred
))
+
'
\n
'
)
oFile
.
write
(
'Classification report:
\n
'
)
oFile
.
write
(
classification_report
(
y_test
,
y_pred
)
+
'
\n
'
)
oFile
.
write
(
'Best parameters:
\n
'
)
for
param
in
sorted
(
best_parameters
.
keys
()):
oFile
.
write
(
"
\t
%
s:
%
r
\n
"
%
(
param
,
best_parameters
[
param
]))
...
...
Please
register
or
login
to post a comment