Данные должны быть 1-мерным Pd.dataFrame

x_train = numpy.squeeze(x_train)
Perro Fiel