I am trying to compare the 2 values from the indexes of two different numpy arrays as below:
if(temp_similarity[k]==similarity[l]):
sum = sum+probabilities_train[l]
break
but i found the following error?
if(temp_similarity[k]==similarity[l]):
ValueError: The truth value of an array with more than one element is ambiguous.
Use a.any() or a.all()
Please help me in this regards???
Aucun commentaire:
Enregistrer un commentaire