Bayesian adaptive diagnoser of bug rules with tree structure model