I currently have a matrix that is 6x3 containing different probabilities.
My rows in this case has 3 values, corresponding to the probability of my sample ending up belonging to a certain class.
What I'm trying to do is to get every of the 3 different classes for my 6 samples. I'm worried that I might end up with duplicates.
I've noticed that every element in lista
contains 6 values. Is there a simple way for me to get rid of possible duplicates ?
for combination in itertools.product(*probability):
q1 = np.prod((combination))
lista.append(q1)
print(combination)
i = i+1
print(i)
print(np.sum(lista))
Thanks in advance!