我试图咬下掩蔽和丢弃我的data[]的LSB,一个包含int16的numpy.ndarray。,输出不是int16数组。它变成了numpy.float64。python不允许我按位或重写LSB。TypeError: unsupported operand type(s) for |: 'numpy.float64' and 'int'numpy.int16
>>type(data_new[0
我有numpy稀疏矩阵,我将其转储为libsvm格式。VC是使用词汇表大小为85731 vc <1315689x85731 sparse matrix of type '<type 'numpy.int64'>' with 38911625 stored去掉了两列:data[0] <1315689x85729 sparse matrix of type '<type 'numpy.float64'>' with