logistic regression based on dlib