### Problem in creating a Numpy Dataset for Classification problem

I am trying to train a classification Model to classify Images, but my images here are Numpy arrays of 1’s and 0’s as shown in the Image, For now, I have tried, x1_data=[] def create_array(columns=5,rows=5,randomness=.3): board = np.zeros([rows,columns],dtype=’int64′) for i in range(rows): for j in range(columns): if np.random.random() <= randomness: board[i,j] = 1 return board…