题库 软件开发 题目列表 以下这段代码的输出结果为() import numpy as np...
单选题
以下这段代码的输出结果为()
import numpy as np
a = np.repeat(np.arange(5).reshape([1,-1]),10,axis = 0)+10.0
b = np.random.randint(5, size= a.shape)
c = np.argmin(a*b, axis=1)
b = np.zeros(a.shape)
b[np.arange(b.shape[0]), c] = 1
print b


A.

Hello World!

B.

一个 shape = (5,10) 的随机整数矩阵

C.

一个 shape = (5,10) 的 one-hot 矩阵

D.

一个 shape = (10,5) 的 one-hot 矩阵

题目信息
校招真题
-
正确率
0
评论
17
点击