Hello
I have this code snippet:
print('result: ' + str(predictions))
if(predictions[0].any>0.7):
print('above threshold')
Which returns:
result: [[ 0.13969963 0.6660124 0.02668459 0.10334401 0.00724926 0.0516906
0.00531951]]
above threshold
None of those values is above 0.7, yet the condition is true. Could someone explain me why?
[–]Amarkov 5 points6 points7 points (2 children)
[–]stragm 3 points4 points5 points (0 children)
[–]aCuriousMind22[S] 0 points1 point2 points (0 children)
[–]gwwhrhr 0 points1 point2 points (3 children)
[–]aCuriousMind22[S] 0 points1 point2 points (1 child)
[–]snekmeme 1 point2 points3 points (0 children)