The actual values that the function returns were chosen empirically by counting the number of occurrences of each class in the training data.
"good" candidates make up 74.26% of the data, hence the value the function returns for "good" roots is set to 0.7426.