I want to reshape the MNIST digits dataset from (28, 28) to (32, 32). One way is to interpolate the data. I use custom Radial Basis Function for interpolation. How to do it??
Here is the RBF function
def RBF(x, c, s):
return np.exp(-np.sum((x-c)**2, axis=1)/(2*s**2))
where x is the actual value, c is the centre(assumed as mean) and s is standard deviation.
Here is how I load the data from tensorflow
import tensorflow as tf
data = tf.contrib.learn.datasets.mnist.load_mnist()

