because for two classes, the output is 1d.