回答編集履歴
1
d
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
```python
|
14
14
|
|
15
|
-
for layer in base_model.layers[-2
|
15
|
+
for layer in base_model.layers[:-2]:
|
16
16
|
|
17
17
|
layer.trainable = False
|
18
18
|
|
@@ -40,8 +40,8 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
print(a[-2
|
43
|
+
print(a[:-2])
|
44
44
|
|
45
|
-
# [18, 1
|
45
|
+
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
|
46
46
|
|
47
47
|
```
|