Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
conditional-random-fields
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-02-14 02:05:57 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
345303cf9dae1d601fd58f77c7816e566f81ef7c
345303cf
1 parent
5357677a
Conditional Random Fields
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
training-validation-v1.py
training-validation-v1.py
View file @
345303c
...
...
@@ -237,7 +237,7 @@ if __name__ == "__main__":
oFile
.
write
(
"********** TRAINING AND TESTING REPORT **********
\n
"
)
oFile
.
write
(
"Training file: "
+
options
.
trainingFile
+
'
\n
'
)
oFile
.
write
(
'
\n
'
)
oFile
.
write
(
'best params:'
+
str
(
crf
.
best_params_
)
+
'
\n
'
)
#
oFile.write('best params:' + str(crf.best_params_) + '\n')
oFile
.
write
(
'best CV score:'
+
str
(
crf
.
best_score_
)
+
'
\n
'
)
oFile
.
write
(
'model size: {:0.2f}M
\n
'
.
format
(
crf
.
best_estimator_
.
size_
/
1000000
))
...
...
Please
register
or
login
to post a comment