Machine Learning Methods for Control of Fibre Lasers with Double Gain Nonlinear Loop Mirror