Train DBN using random hyperparameters