sample from trained DBM