Use common train and predict method in loc.py
Use common train and predict method in loc.py

- Use common train and predict method in loc.py
- Cosmetic changes

SoftwareDefinedBuildings/BearLoc,SoftwareDefinedBuildings/BearLoc,SoftwareDefinedBuildings/BearLoc,SoftwareDefinedBuildings/BearLoc