My model learns W:
W = tf.Variable(tf.truncated_normal([pixels,h1],stddev=np.sqrt(2.0 / (pixels))))
I return W from a function that runs my TF graph / session.
In my notebook, I checked type of W:
type(W)
out: tensorflow.python.ops.variables.Variable
I also checked dimensionality of W:
W.get_shape()
out: TensorShape([Dimension(3072), Dimension(1024)])
I'd like to convert W into a Pandas dataframe (for examination, etc.).
How can I do this?
(Saw this answer on converting tensor to numpy with eval()
, which could then be written to pandas of course. But that operation only seemed to work within the TF session.)