__init__ method for BayesianModel Class