full training and serializing of a Bayesian detector now supported :D