# Edward example code Mixture

**URL:** <https://discourse.edwardlib.org/t/edward-example-code-mixture/952>\
**Category:** General\
**Created:** [October 15, 2018, 2:39am UTC](https://discourse.edwardlib.org/t/edward-example-code-mixture/952 "2018-10-15T02:39:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuchenbaidu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.edwardlib.org/liuchenbaidu/32/355_2.png) [@liuchenbaidu](https://discourse.edwardlib.org/u/liuchenbaidu)\
**Post date:** [October 15, 2018, 2:39am UTC](https://discourse.edwardlib.org/t/edward-example-code-mixture/952/1 "2018-10-15T02:39:20Z")

</div>

Hi all  
I am having problems with the example code from [http://edwardlib.org/tutorials/unsupervised](http://edwardlib.org/tutorials/unsupervised).

in the section of Criticism.  
log\_liks = x\_post.log\_prob(x\_broadcasted)  
log\_liks = tf.reduce\_sum(log\_liks, 3)

the two code lines,i don’t know the mean.  
can you give me some advices?

after the code line : inference.initialize()  
inference.n\_iter is initialize by 500, i don’t understand this.
