回答編集履歴
2
コード修正
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
```python
|
2
|
-
|
3
|
-
if test_iterator.is_new_epoch:
|
4
2
|
|
5
3
|
test_iterator.epoch = 0
|
6
4
|
|
@@ -10,19 +8,13 @@
|
|
10
8
|
|
11
9
|
test_iterator._pushed_position = None
|
12
10
|
|
13
|
-
break
|
14
|
-
|
15
11
|
```
|
16
12
|
|
17
13
|
↓ 修正
|
18
14
|
|
19
15
|
```python
|
20
16
|
|
21
|
-
if test_iterator.is_new_epoch:
|
22
|
-
|
23
17
|
test_iterator.reset()
|
24
|
-
|
25
|
-
break
|
26
18
|
|
27
19
|
```
|
28
20
|
|
1
コードの修正
test
CHANGED
@@ -12,13 +12,9 @@
|
|
12
12
|
|
13
13
|
break
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
print ("検証誤差:{: .04f} 検証精度:{: .02f}".format(np.mean(test_losses), np.mean(test_accuracies)))
|
18
|
-
|
19
15
|
```
|
20
16
|
|
21
|
-
↓ 修正
|
17
|
+
↓ 修正
|
22
18
|
|
23
19
|
```python
|
24
20
|
|
@@ -28,10 +24,6 @@
|
|
28
24
|
|
29
25
|
break
|
30
26
|
|
31
|
-
|
32
|
-
|
33
|
-
print ("検証誤差:{: .04f} 検証精度:{: .02f}".format(np.mean(test_losses), np.mean(test_accuracies)))
|
34
|
-
|
35
27
|
```
|
36
28
|
|
37
29
|
|