AttributeError: 'numpy.ndarray' object has no attribute 'id'
问题 I am creating a sklearn pipeline that consists of 3 steps: Transforms pandas dataframe into 3D array Transforms 3D array into recurrence plot (image) Trains an image classification model using Keras This is my initial data set: train_df - pandas dataframe id cycle s1 1 1 0.05 1 2 0.04 1 3 0.05 1 4 0.05 2 1 0.02 2 2 0.03 y_train array([[1., 0., 0.], [1., 0., 0.], ... [1., 0., 0.]], dtype=float32) When I run my current code (see below), I get the following error: AttributeError: 'numpy.ndarray'