Generalised max entropy classifiers