Evaluate the fitness of a candidate split.
Evaluate the fitness of a candidate split.
This method may transform the split, in which case the score applies to the split that is returned. The result is optional to handle cases where a split is not valid (for example, if one side of a split is "empty" in some sense).