Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
laigen-supervised-learning
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
2020-02-20 04:31:32 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4bbde43ff2c8ddea1848ea08976b4485ce8be5ca
4bbde43f
1 parent
11907b56
Classification transcription factor structural domain sentences
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
text-dom-dataset/training-crossvalidation-testing-dom-v1.py
text-dom-dataset/training-crossvalidation-testing-dom-v1.py
View file @
4bbde43
...
...
@@ -309,11 +309,11 @@ if __name__ == "__main__":
for
param
in
sorted
(
best_parameters
.
keys
()):
oFile
.
write
(
"
\t
%
s:
%
r
\n
"
%
(
param
,
best_parameters
[
param
]))
if
args
.
classifier
==
"SVM"
:
if
args
.
kernel
==
"linear"
:
oFile
.
write
(
'
\n
Weights assigned to the features:
\n
'
)
oFile
.
write
(
"{}
\n
"
.
format
(
myClassifier
.
best_estimator_
.
coef_
))
oFile
.
write
(
'Confidence scores:
\n
'
)
oFile
.
write
(
"{}
\n
"
.
format
(
confidence_scores
))
#
if args.kernel == "linear":
#
oFile.write('\nWeights assigned to the features: \n')
#
oFile.write("{}\n".format(myClassifier.best_estimator_.coef_))
#
oFile.write('Confidence scores: \n')
#
oFile.write("{}\n".format(confidence_scores))
oFile
.
write
(
'Number of support vectors per class:
\n
{}
\n
'
.
format
(
myClassifier
.
best_estimator_
.
n_support_
))
oFile
.
write
(
'Support vectors:
\n
{}
\n
'
.
format
(
myClassifier
.
best_estimator_
.
support_vectors_
))
...
...
Please
register
or
login
to post a comment