Mitigating RT instability and enhancing stagnation performance via optimization of laser pulse guided by machine learning | Synapse