Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
bc3ce163
Unverified
Commit
bc3ce163
authored
2 years ago
by
i-robot
Committed by
Gitee
2 years ago
Browse files
Options
Downloads
Plain Diff
!3736 lstm_crf
Merge pull request !3736 from nomindcarry/master
parents
25a9c4f2
f6d852ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
research/nlp/lstm_crf/train.py
+3
-0
3 additions, 0 deletions
research/nlp/lstm_crf/train.py
with
3 additions
and
0 deletions
research/nlp/lstm_crf/train.py
+
3
−
0
View file @
bc3ce163
...
...
@@ -62,6 +62,9 @@ class EvalCabllBack(TimeMonitor):
self
.
callback
=
F1
(
len
(
self
.
tags_to_index_map
))
self
.
_best_val_F1
=
0
def
epoch_begin
(
self
,
run_context
):
self
.
network
.
is_training
=
True
def
epoch_end
(
self
,
run_context
):
"""
save .ckpt files
"""
self
.
network
.
is_training
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment