... np.array([1 if x>0.5 else 0 for x in A.reshape(-1,1)]).reshape(A.shape) print ('Accuracy: %f' % float((np.dot(Y, predictions.
確定! 回上一頁