Do not build a classifier if there is only one class