Machine Learning for X-ray and Neutron Scattering