Classifying using logarithmic regression