在使用机器学习算法过程中报错:ValueError: Incompatible dimension for X and Y matrices: X.shape[1] == 224 while Y.shape[1] == 334

使用KNN算法过程中遇到了ValueError: Incompatible dimension for X and Y matrices: X.shape[1] == 224 while Y.shape[1] == 334 的问题
代码截图:图片说明

报错截图:图片说明

求大佬救救孩子吧

x_test=transfer.transform(x_test[1])

计算得分时,X和Y的size不一致吧