def rmse_logistic(xys, w0, w1): xs, ys = xys[:,:-1], xys[:,-1:] w = np.stack((w0, w1), axis=0) positive_p = sigmoid(np.tensordot(bias_trick(xs), w, axes=