Non-parametric Bayesian Networks for Managing an Energy Market