train_barlines_bernoulli