x_train
x_train is multi-dimensional array including numerical elements of target contents. For example, when you train 1000 images with 85 * 128 pixels RGB, x_train should be a 4-dimensional array (1000, 85, 128, 3).
x_train datatype is normalized between 0 and 1 with float32 in this case. (RGB is described as 8 bit)
y_train
y_train is a 2-dimensional array that contains classification index. If you want to train a model that classifies 4 vehicle names by using 1000 images, y_train looks like a 2-dimensional array (1000, 4). Sample code to create y_train array is below
scikit-learn's fit is able to make the index in order. I was wondering how the order is defined? I found out it is alphabetical sequence, and capital is prioritized like below.
Code