Max-margin basedBayesian classifier