Deep Learning Methods for Fingerprint-Based Indoor and Outdoor Positioning