Machine learning and reaction dynamics: From spectroscopic constants of diatomic molecules to buffer gas chemistry