Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -392,6 +392,7 @@ class Engine(object):
|
|
392 |
pred_lon, pred_lat = self.preds[self.index]
|
393 |
self.mpl_style(pred_lon, pred_lat, true_lon, true_lat, click_lon, click_lat)
|
394 |
|
|
|
395 |
distance = haversine(true_lat, true_lon, click_lat, click_lon)
|
396 |
score = geoscore(distance)
|
397 |
self.stats['scores'].append(score)
|
|
|
392 |
pred_lon, pred_lat = self.preds[self.index]
|
393 |
self.mpl_style(pred_lon, pred_lat, true_lon, true_lat, click_lon, click_lat)
|
394 |
|
395 |
+
print(f"True: {true_lat}, {true_lon}, Pred: {pred_lat}, {pred_lon}, Click: {click_lat}, {click_lon}")
|
396 |
distance = haversine(true_lat, true_lon, click_lat, click_lon)
|
397 |
score = geoscore(distance)
|
398 |
self.stats['scores'].append(score)
|