This method builds a BBQ calibration model using the trainings set provided.
build_BBQ(actual, predicted)
vector of observed class labels (0/1)
vector of uncalibrated predictions
returns the BBQ model which includes models for all evaluated binning schemes; the prunedmodel contains only a selection of BBQ models with the best Bayesian score
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/