i'm looking at some code, trying to see how it works , it's for neural network which is using numpy arrays, i changed dataset with less images but now i get this error in numpy array: " ValueError: setting an array element with a sequence. " Can anyone tell me what's the problem , or do you need whole code?
train = train_data[:-1]
test = train_data[-191:]
X = np.array([i[0] for i in train]).reshape(-1,IMG_SIZE,IMG_SIZE,1)
Y = [i[1] for i in train]
test_x = np.array([i[0] for i in test]).reshape(-1,IMG_SIZE,IMG_SIZE,1)
test_y = [i[1] for i in test]
model.fit({'input': X}, {'targets': Y}, n_epoch=3, validation_set=({'input': test_x}, {'targets': test_y}),
snapshot_step=500, show_metric=True, run_id=MODEL_NAME)