# Is it possible to make something like TrueSkill with ForneyLab.jl?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-make-something-like-trueskill-with-forneylab-jl/14553>\
**Category:** Machine Learning\
**Created:** [September 4, 2018, 9:13pm UTC](https://discourse.julialang.org/t/is-it-possible-to-make-something-like-trueskill-with-forneylab-jl/14553 "2018-09-04T21:13:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lemniscate](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@Lemniscate](https://discourse.julialang.org/u/Lemniscate)\
**Post date:** [September 4, 2018, 9:13pm UTC](https://discourse.julialang.org/t/is-it-possible-to-make-something-like-trueskill-with-forneylab-jl/14553/1 "2018-09-04T21:13:50Z")

</div>

I’ve been trying to use [ForneyLab.jl](https://github.com/biaslab/ForneyLab.jl) to run inference (using the sum-product algorithm and expectation propagation) for TrueSkill.

I’ve run into a few issues:

- How can I add an indicator function (i.e. set y=+1 if d\>0 and y=-1 if d\<0, where d is a normal rv)?
- How can I set a prior for the skill variables while still letting their distributions update? i.e. if I specify that x[i]~Gaussian(2,3) (for example), will its distribution automatically update after running the sum-product algorithm?
- Is it possible to make the algorithm repeatedly iterate over the graph? (the message passing has to be iterated for TrueSkill to work properly)

If it’s not possible, is there another Julia package that can automatically compute the message passing algorithms for a given graph?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 5, 2018, 5:58am UTC](https://discourse.julialang.org/t/is-it-possible-to-make-something-like-trueskill-with-forneylab-jl/14553/2 "2018-09-05T05:58:07Z")

</div>

If you don’t get a reply here (because it is a very specific question): most package authors are fine with opening issues for questions.

---

<div class="post-metadata">

**Author:** ![Marco\_Cox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marco_cox/32/5300_2.png) [@Marco\_Cox](https://discourse.julialang.org/u/Marco_Cox)\
**Post date:** [September 9, 2018, 7:36pm UTC](https://discourse.julialang.org/t/is-it-possible-to-make-something-like-trueskill-with-forneylab-jl/14553/3 "2018-09-09T19:36:37Z")

</div>

Same question was also [posted on Reddit](https://www.reddit.com/r/Julia/comments/9czm2x/is_it_possible_to_implement_trueskill_with/), and was answered there.
