1、Can't broadcast input array from shape (3,1) into shape (3,)
resolution:
V[k:m,k] = v
; v
has shape (3,1), but the target is (3,). k:m
is a 3 term slice; k
is a scalar.
Try using v.ravel()
. Or V[k:m,[k]]
.
2、result1 = pd.Series(np.squeeze(np.load('results_just_TD_leaveOne.npy')))
result2 = np.load('results_just_TD_leaveOne.npy')
a = np.argmin(results1[1:80]) -----> 43
b = np.argmin(results2[1:80]) -----> 42
3、data 如果是dataframe类型: ffff = ordered_data.loc[:,42]
data 如果是array类型: ffff = ordered_data[:,:42]
4、for s in range(0,80):
print('%s' % s) ---->(0,1,2,3,.....,78,79); 此处不包含80