What i have done so far is Sort out the Top 3 position of values of an array, but i am looking out to get the only values which are more than 0.20..... in Descending order.
label = np.array(genres)
print(label)
#OUTPUT: [0.1892372 0.29031774 0.19473006 0.01859367 0.10489976 0.20222157]
label = label.argsort()[::-1][:3]
Output i am getting is :
Output:
[1 5 2]
Output looking for :
label = [0.29031774 0.20222157]
[1 5]