Classical integrability in the presence of a cosmological constant: analytic and machine learning results