質問編集履歴
2
質問文の付け足し
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,7 @@
|
|
31
31
|
|
32
32
|
|
33
33
|

|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
参考書にこのような記載しかされておらずどなたか力を貸してください!
|
1
質問文にコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,4 +8,26 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
```python
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
n_input = 32
|
16
|
+
|
17
|
+
n_hidden = 64
|
18
|
+
|
19
|
+
w =np.random.randn(n_inputs+n_hidden,n_hidden*4)
|
20
|
+
|
21
|
+
b = np.zeros(n_hidden*4)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
def lstm(x, h, c):
|
26
|
+
|
27
|
+
z = ...i = ...f = ...o = ...
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
|
11
33
|

|