BayesianModel's __init__ function