deepgram / kur

Descriptive Deep Learning
Apache License 2.0
816 stars 107 forks source link

post processing code for tutorial from scratch has some error #19

Closed EmbraceLife closed 7 years ago

EmbraceLife commented 7 years ago

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:

screen shot 2017-02-26 at 9 51 59 pm

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
ajsyp commented 7 years ago

I isolated the commit that caused the tutorial to break (c0157db). I'll be pushing a fix when I have a minute.

ajsyp commented 7 years ago

Commit 5844dd3 should fix this. Please let me know if you see otherwise.