EP plots samples now for the phi transformation.

This commit is contained in:
Ricardo Andrade 2013-01-30 12:14:32 +00:00
parent d1a0883c12
commit 29eb61d65e
5 changed files with 23 additions and 8 deletions

View file

@ -43,6 +43,6 @@ print m.checkgrad()
# Optimize and plot
m.optimize()
#m.em(plot_all=False) # EM algorithm
m.plot()
m.plot(samples=4)
print(m)

View file

@ -14,6 +14,7 @@ pb.ion()
N = 500
M = 5
pb.close('all')
######################################
## 1 dimensional example
@ -42,6 +43,7 @@ print m.checkgrad()
#check gradient FIXME unit test please
# optimize and plot
#m.optimize('tnc', messages = 1)
m.EM()
m.plot(samples=3,full_cov=False)
# print(m)