I have ran the code myself, here is where goes wrong:
I managed to some code work, but not the others:
# diff = numpy.abs(data['truth']['above'] - data['result']['above']) < 1 # original but not working
# I made some changes here, the accuracy is 98%, not 99.7%.
diff = np.array([np.abs(a - b[0]) for a, b in zip(data['truth']['above'], data['result']['above'])]) < 1
correct = diff.sum()
total = len(diff)
correct / total * 100
The data type inside output.pkl from tutorial from scratch: post processing is not both numpy.array, therefore, the code below is not working
I have ran the code myself, here is where goes wrong:
I managed to some code work, but not the others: