форматирование вышеуказанного результата предсказания
pred = ["2.8300792e-06","4.5637703e-03", "7.2316222e-02"," 6.7710824e-02"," 5.2243233e-01",
"3.7763064e-04","1.2326813e-02","2.9277834e-01", "4.1662962e-03", "1.0876421e-05",
"2.3830748e-06", "1.3590348e-04", "2.3074823e-02","3.3520879e-05", "4.0551484e-05",
"1.9896568e-06" ,"1.0994432e-05", "4.7518920e-06" ,"2.3408763e-06" ,"6.7659844e-06"]
pred_ = ["{:f}".format(float(x)) for x in pred])
#np.argmax give you the position which have maximum value and not probability
#o/p
['0.000003', '0.004564', '0.072316', '0.067711', '0.522432', '0.000378', '0.012327',
'0.292778', '0.004166', '0.000011', '0.000002', '0.000136', '0.023075', '0.000034',
'0.000041', '0.000002', '0.000011', '0.000005', '0.000002', '0.000007']
np.argmax(pred_)
#o/p
4