I want to use a function to put values in a variable. But one of the parameters of this function is the parameter I want to expand. It looks like this:
X_train, y_train = load_images_to_data('a', 'data/a', X_train, y_train)
But do I have to declare the variable before this part of my program? For example typing something like
X_train
y_train
or
X_train = ( , , , )
y_train = ( , , , )
My code idea comes from here. And I wanted to change the code so I would still use de MNIST data for training but my own data for testing. But then my X_test and y_test should have an initial value.