added trainers for bernoulli nce