keras only read array prediction code example Example: model.predict([x_test]) error Just put model.predict(x_test) instead of model.predict([x_test])