Deep learning of physical laws from scarce data