It has it's own Metro stop luckily enough! You can get there by taking the metro and getting off at Yuyuan Garden station (豫园), located on Line 10. From there, take exit 1, and it should only be a short, 10 minute walk to the garden.