Bayesian Stochastic Attention-Based Neural Bag Of Feature Model With Applications In Sequence Data