Maximum a posteriori adaptation of network parameters in deep models