Binned semiparametric Bayesian networks