I have an array of probabilities:
proba = :[[0.254 0.556 0.025] [0.898 0567 .112]]
want max value from each as [[0.556] [0.898]]
How i can do it? Tried 2 methods:
1. max(sublist) for sublist in proba
2. proba = map(max,proba)
and getting error "TypeError: 'numpy.float32' object is not iterable"
Any suggestion?
:before your array?