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:33:14 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89694655563b8383beeebe303f0ce36d276c6ec5
89694655
1 parent
9562445a
Conditional Random Fields
Show 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 @
8969465
...
...
@@ -273,7 +273,7 @@ if __name__ == "__main__":
# labels.remove('O')
with
open
(
os
.
path
.
join
(
options
.
outputPath
,
"reports"
,
"report_"
+
nameReport
),
mode
=
"a"
)
as
oFile
:
oFile
.
write
(
'********** EVALUATION **********
\n
'
)
oFile
.
write
(
'
\n
********** EVALUATION **********
\n
'
)
oFile
.
write
(
"Flat F1: "
+
str
(
metrics
.
flat_f1_score
(
y_test
,
y_pred
,
average
=
'weighted'
,
labels
=
labels
)))
oFile
.
write
(
'
\n
'
)
# labels = list(crf.classes_)
...
...
Please
register
or
login
to post a comment