lmdk_bgt: Added mae_cont
This commit is contained in:
parent
76a95f6a0a
commit
5afaa055b3
@ -594,3 +594,13 @@ def mae(seq, o):
|
||||
for i, p in enumerate(seq):
|
||||
mae += distance((p[1], p[2]), (o[i][1], o[i][2])).km*1000/len(seq)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user