lmdk_bgt: Added mae_cont

This commit is contained in:
Manos Katsomallos 2021-09-29 02:20:35 +02:00
parent 76a95f6a0a
commit 5afaa055b3

View File

@ -594,3 +594,13 @@ def mae(seq, o):
for i, p in enumerate(seq): for i, p in enumerate(seq):
mae += distance((p[1], p[2]), (o[i][1], o[i][2])).km*1000/len(seq) mae += distance((p[1], p[2]), (o[i][1], o[i][2])).km*1000/len(seq)
return mae return mae
def mae_cont(o):
mae = 0
for i, p in enumerate(o):
# Check if original differs from final
if p[0] != p[1]:
mae += 1/len(o)
print(mae)
return mae