improve exception message of Linear.predictProbability()