if data_train.shape[0] % 2 != 0: data_train = data_train[-c(1),] labels_train = labels_train[-c(1),] c not define. pls fix it