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
db0de3bb
Commit
db0de3bb
authored
Nov 08, 2017
by
Neal Wu
Browse files
Train wide_deep.py for longer for more consistent results that match the tutorials
parent
a6e1b895
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/wide_deep/wide_deep.py
official/wide_deep/wide_deep.py
+2
-2
No files found.
official/wide_deep/wide_deep.py
View file @
db0de3bb
...
@@ -44,7 +44,7 @@ parser.add_argument(
...
@@ -44,7 +44,7 @@ parser.add_argument(
help
=
"Valid model types: {'wide', 'deep', 'wide_deep'}."
)
help
=
"Valid model types: {'wide', 'deep', 'wide_deep'}."
)
parser
.
add_argument
(
parser
.
add_argument
(
'--train_epochs'
,
type
=
int
,
default
=
2
0
,
help
=
'Number of training epochs.'
)
'--train_epochs'
,
type
=
int
,
default
=
4
0
,
help
=
'Number of training epochs.'
)
parser
.
add_argument
(
parser
.
add_argument
(
'--epochs_per_eval'
,
type
=
int
,
default
=
2
,
'--epochs_per_eval'
,
type
=
int
,
default
=
2
,
...
@@ -213,7 +213,7 @@ def main(unused_argv):
...
@@ -213,7 +213,7 @@ def main(unused_argv):
# Display evaluation metrics
# Display evaluation metrics
print
(
'Results at epoch'
,
(
n
+
1
)
*
FLAGS
.
epochs_per_eval
)
print
(
'Results at epoch'
,
(
n
+
1
)
*
FLAGS
.
epochs_per_eval
)
print
(
'-'
*
3
0
)
print
(
'-'
*
6
0
)
for
key
in
sorted
(
results
):
for
key
in
sorted
(
results
):
print
(
'%s: %s'
%
(
key
,
results
[
key
]))
print
(
'%s: %s'
%
(
key
,
results
[
key
]))
...
...
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