I am trying to create one CNN model. I have my image pixels in 1D array. But I want to read that image. So I have to convert that 1D array into 2D array. How can I do that?
You can follow the below given codes to do this task.
import numpy as np
img = np.asanyarray(1D_array)
img1 = img.reshape((28,28))
Hope this will help.
Have a look at this one:
from sklearn.datasets ...READ MORE
Hi @Vikas, there are 5 simple steps ...READ MORE
I have recently started learning the machine. ...READ MORE
To save your Machine Learning model, you ...READ MORE
So< if your error says:
You can read excel files
df = pd.read_excel(...)
You ...READ MORE
Try something like this:
array([[nan, 0.2, nan],
Your data set contains lots of rows ...READ MORE
You can do this task using pandas ...READ MORE
According to your code, you are trying ...READ MORE
Already have an account? Sign in.