Fair enough. I also find the error message a little unclear. Perhaps: "The constant target value must be present in training data" would suffice.