Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
9214db1d
Commit
9214db1d
authored
Jun 11, 2019
by
guptapriya
Committed by
guptapriya
Jun 12, 2019
Browse files
Fix early stopping metric check
parent
8f6e2547
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+1
-1
No files found.
official/recommendation/ncf_keras_main.py
View file @
9214db1d
...
@@ -294,7 +294,7 @@ def run_ncf(_):
...
@@ -294,7 +294,7 @@ def run_ncf(_):
if
FLAGS
.
early_stopping
:
if
FLAGS
.
early_stopping
:
early_stopping_callback
=
CustomEarlyStopping
(
early_stopping_callback
=
CustomEarlyStopping
(
"val_
metric_fn
"
,
desired_value
=
FLAGS
.
hr_threshold
)
"val_
HR_METRIC
"
,
desired_value
=
FLAGS
.
hr_threshold
)
callbacks
.
append
(
early_stopping_callback
)
callbacks
.
append
(
early_stopping_callback
)
strategy
=
distribution_utils
.
get_distribution_strategy
(
strategy
=
distribution_utils
.
get_distribution_strategy
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment