Machine Learning Approaches for the Solution of the Riemann Problem in Fluid Dynamics: a Case Study