Machine Learning Toric Duality in Brane Tilings