只是好奇这个KX代码是做什么的:
" " {`$first x vs y}/: column
它是在update语句中使用的大型KX查询的一部分。
x vs y是什么?他们从哪里来?/:和左边的" "一起做什么?
整个查询如下所示:
select count i by date, somecolumn from update somecolumn:(" " {`$first x vs y}/: othercolumn) from select from some_table
x vs y是什么?他们从哪里来?/:和左边的" "一起
我正在处理MNIST数据集,我想要获取图像的左侧。测试数据集中的每个图像都表示为由784 (28X28)元素组成的numpy数组(灰度范围为0、1)。所以,举个例子,如果我想选择最上面的一面:
img=test[0][0] #img is now a numpy array of 784 elements
top_side=img[:784/2]
top_side=top_side.reshape([14,28]) #turning the vector to the image shape
但我不知道如何从向量中取出图像的左边。
有什么想法吗?