The residual neural network is used to carry out machine learning on the steady-state flow field of the hemisphere-on-cylinder laser turret model in the range of Ma=0.3~0.8, and the subsonic/transonic flow field under any incoming flow conditions in this range is established. The prediction accuracy of this model is evaluated for beam wavefront distortion under different view-of-field angles. The learning model reproduces flow characteristics such as boundary layers, flow separation, and separated shear layers in turret flows, including in particular unanchored shock discontinuities in transonic flow. The wavefront distribution based on the predicted flow field under different viewing angles is basically consistent with that calculated based on the flow field of CFD. This machine learning method provides a strategy for adaptive correction of laser turret aero-optical effects in the engineering field.