Algorithm 2 LightGBM localization algorithm based on merged fingerprint | |||
1 | Input: imgSet, wifiFingerprintSet, Rpnum | ||
2 | wifi_KPCA = [[]] | ||
3 | imgFingerprint = [[]] | ||
4 | mergeFP = [[]] | ||
5 | wifi_KPCA = KPCA(wifiFingerprintSet) | ||
6 | for n = 1 to Rpnum | ||
7 | for q to n do | ||
8 | imgFingerprint[n][q] = LBP(imgSet[n][q]) | ||
9 | mergeFP[n][q] = [wifi_KPCA[n][q], imgFingerprint[n][q]] | ||
10 | XpreModel = LightGBM.train(mergeFP,Xcoordinates) | ||
11 | YpreModel = LightGBM.train(mergeFP,Ycoordinates) |