質問編集履歴
1
使っている関数が違った
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import numpy as np
|
5
5
|
|
6
6
|
vec = np.array(range(6))
|
7
|
-
|
7
|
+
np.reshape(vec, (6,1))
|
8
8
|
print(vec.shape) #ここで(6,1)になってほしい
|
9
9
|
|
10
10
|
mat = np.dot(vec, vec.T)
|