Bernoulli classifier working.