BoW classifier using logistic regression