single-class training and classification for BOW