FUNCTION_DESCRIPTION
predict_BBQ(bbq, new, option)output from the build_BBQ method
vector of uncalibrated probabilities
either 1 or 0; averaging=1, selecting=0
a list object containing the following components:
contains a vector of calibrated predictions
which option was used (averaging or selecting)
the percentage of new instances that was evaluated using significant prediction estimates
number of instances new in each bin of the selected model
Based on the paper (and matlab code) : "Obtaining Well Calibrated Probabilities Using Bayesian Binning" by Naeini, Cooper and Hauskrecht: ; https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4410090/