How to Choose the Best ML Deployment Strategy: Cloud vs. Edge