ValueError: Logit dan Label harus memiliki bentuk yang sama ((tidak ada, 1) vs (tidak ada, 2))

# you should reshape your labels as 2d-tensor
# the first dimension will be the batch dimension and the second the scalar label)

y_train = np.asarray(train_labels).astype('float32').reshape((-1,1))
y_test = np.asarray(test_labels).astype('float32').reshape((-1,1))
Shanti