Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiryuu Sakuya
TensorFlow-Homework
Commits
56dbc7df
Unverified
Commit
56dbc7df
authored
Apr 14, 2020
by
Kiryuu Sakuya
🎵
Browse files
fix typo
parent
391051e1
Changes
5
Hide whitespace changes
Inline
Side-by-side
exam/step10/AnsAlexNet.py
View file @
56dbc7df
...
...
@@ -83,7 +83,7 @@ with tf.Session() as sess:
acc_v
+=
computeAccuracy
(
output_v
,
Y_v
)
acc_v
/=
10
print
(
'current accuracy: '
,
str
(
acc_v
))
# if acc_v
\u003e
0.7 and acc_v
\u003e
max_acc:
# if acc_v
>
0.7 and acc_v
>
max_acc:
# max_acc = acc_v
# saver.save(sess, "step10/Model/FinalNet")
#********** End **********#
\ No newline at end of file
exam/step10/AnsInception.py
View file @
56dbc7df
...
...
@@ -78,7 +78,7 @@ with tf.Session() as sess:
acc_Val
.
append
(
acc_v
)
print
(
'current accuracy: '
,
str
(
acc_v
))
if
acc_v
\
u003e
0.7
and
acc_v
\
u003e
max_acc
:
if
acc_v
>
0.7
and
acc_v
>
max_acc
:
max_acc
=
acc_v
saver
.
save
(
sess
,
"step10/Model/FinalNet"
)
exam/step10/AnsResNet.py
View file @
56dbc7df
...
...
@@ -87,6 +87,6 @@ with tf.Session() as sess:
acc_Val
.
append
(
acc_v
)
print
(
'current accuracy: '
+
str
(
acc_v
))
if
acc_v
\
u003e
0.7
and
acc_v
\
u003e
max_acc
:
if
acc_v
>
0.7
and
acc_v
>
max_acc
:
max_acc
=
acc_v
saver
.
save
(
sess
,
"step10/Model/FinalNet"
)
\ No newline at end of file
exam/step10/TraubSaveLoadTest.py
View file @
56dbc7df
...
...
@@ -64,7 +64,7 @@ with tf.Session() as sess:
acc_v
/=
10
# print(acc_v)
if
acc_v
\
u003e
0
.
35
:
if
acc_v
>
0.35
:
print
(
'训练时间40S内,预测准确率高于35%,恭喜通过本关测试!'
,
end
=
''
)
else
:
print
(
'训练时间40S内,预测准确率低于35%,很遗憾并未通过本关测试!'
,
end
=
''
)
...
...
exam/step3/generatorCompleted.py
View file @
56dbc7df
...
...
@@ -28,7 +28,7 @@ class batchGenerator:
curBatchY
=
[]
endIndex
=
self
.
curIndex
+
self
.
batchSize
if
endIndex
\
u003e
=
self
.
num_files
:
if
endIndex
>
=
self
.
num_files
:
endIndex
=
None
# 当前batch再次打乱顺序
...
...
Write
Preview
Supports
Markdown
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