回答編集履歴
2
Axis
test
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
def merge(a, b, c):
|
46
46
|
|
47
|
-
d = [a, b, a] + list(c.transpose(
|
47
|
+
d = [a, b, a] + list(c.transpose(1, 0, 2))
|
48
48
|
|
49
49
|
return d
|
50
50
|
|
1
edit
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
z1_train: (60000, 50)
|
1
|
+
~~z1_train: (60000, 50)
|
2
2
|
|
3
3
|
y_train: (60000, 10)
|
4
4
|
|
@@ -6,10 +6,50 @@
|
|
6
6
|
|
7
7
|
y_u_train: (60000, 10, 10)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
9
|
が本当であれば、エラーは
|
12
10
|
|
13
11
|
[z1_test]+[y_test]+[z1_test]+y_u_test
|
14
12
|
|
15
|
-
の方にあるべきです。
|
13
|
+
の方にあるべきです。~~
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
やっとやりたいことがわかりました。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```python
|
24
|
+
|
25
|
+
import numpy as np
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
n = 60000
|
30
|
+
|
31
|
+
a = np.zeros((n,50))
|
32
|
+
|
33
|
+
b = np.zeros((n,10))
|
34
|
+
|
35
|
+
c = np.zeros((n,10,10))
|
36
|
+
|
37
|
+
print(a.shape)
|
38
|
+
|
39
|
+
print(b.shape)
|
40
|
+
|
41
|
+
print(c.shape)
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
def merge(a, b, c):
|
46
|
+
|
47
|
+
d = [a, b, a] + list(c.transpose(2, 0, 1))
|
48
|
+
|
49
|
+
return d
|
50
|
+
|
51
|
+
d = merge(a, b, c)
|
52
|
+
|
53
|
+
print(len(d))
|
54
|
+
|
55
|
+
```
|