I have a LDA model with the 10 most common topics in 10K documents. Now it's just an overview of the words with corresponding probability distribution for each topic.
I was... moreI have a LDA model with the 10 most common topics in 10K documents. Now it's just an overview of the words with corresponding probability distribution for each topic.
I was wondering if there is something available for python to visualize these topics?
I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0.I cannot get matplotlib graphics to show up inline.
import matplotlib
import numpy as np
import... moreI am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0.I cannot get matplotlib graphics to show up inline.
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
I have also tried %pylab inline and the ipython command line arguments --pylab=inline but this makes no difference.
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp')
plt.show()
Instead of inline graphics, I get this:
<matplotlib.figure.Figure at 0x110b9c450>
And matplotlib.get_backend() shows that I have the 'module://IPython.kernel.zmq.pylab.backend_inline' backend. less
I have created an array :
import numpy as np
data = np.zeros( (512,512,3), dtype=np.uint8)
data =
What I want this to do is display a single red dot in the center of a 512x512... moreI have created an array :
import numpy as np
data = np.zeros( (512,512,3), dtype=np.uint8)
data =
What I want this to do is display a single red dot in the center of a 512x512 image. (At least to begin with... I think I can figure out the rest from there)