Replaced the setattr(self, 'attr', value) with self.attr = value, as suggested by Zbyszek Szmek and Tiziano Zito from MDP team. Also added self.iter_nr in InferandLearn method of class lm.
Replaced the setattr(self, 'attr', value) with self.attr = value, as suggested by Zbyszek Szmek and Tiziano Zito from MDP team. Also added self.iter_nr in InferandLearn method of class lm.

andreamaf/glgm