Optimal partition of feature using Bayesian classifier