I want to use an old script which uses scipy.misc.imresize
.
But unfortunately it is removed entirely from scipy.
I do not understand what it does so what code will perform the same action as the above line.
I tried using skimage.transform.resize(image, (num_px*num_px*3, 1), order = 3)
But get the error - ValueError: cannot reshape array of size 12288 into shape (1200,1)
Edit: More Information
It's classifying pictures as belonging to one of two sets.
my_image = "anyimage.jpg" #any image form the internet
#Preprocessing the image
fname = "images/" + my_image
image = np.array(ndimage.imread(fname, flatten=False))
image = image/255.
my_image = scipy.misc.imresize(image, size=(num_px,num_px)).reshape((1, num_px*num_px*3)).T #The original code which worked perfectly
my_predicted_image = predict(d["w"], d["b"], my_image) #predict function uses
#linear regression where the third parameter must be data of
#size (num_px * num_px * 3, number of examples)