Closed sidnetopia closed 1 year ago
You have an example in the following notebook: https://colab.research.google.com/drive/1Tg9WaI_Cd-lPXDMuj6tHDlqakxo4-CLK
I was hoping that it wouldn't be necessary to train another model, as I already have a set of predictions from different models. I believe my scenario is different from the link you shared.
It has something to do with this:
if option == 'consensus':
if len(np.array(lista))>=math.ceil(numFich/2):#if the number of boxes is greater than half the number of files
pick,prob = ensemble.nonMaximumSuppression(np.array(lista), 0.3)
pick[0][5] = prob/numFich
elif option == 'unanimous':
if len(np.array(lista))==numFich:#if the number of boxes is greater than half the number of files
pick,prob = ensemble.nonMaximumSuppression(np.array(lista), 0.3)
pick[0][5] = prob / numFich
elif option == 'affirmative':
pick,prob = ensemble.nonMaximumSuppression(np.array(lista), 0.3)
pick[0][5] = prob / numFich
Hello,
Could you please explain how ensemble options work using code?