[BPI] Replace weights by probabilities in BPI.