If you want to predict where you are with machine learning and WiFi signals, use whereami. One application of whereami is to turn on Hue light bulbs in specific locations through your laptop.
To predict your current location, start by collecting some samples by running whereami learn -l location
in different locations. Once collecting at least 10 data points, run whereami predict
to predict your current location.