predict_alpha2 is a major revision of predict_alpha, with cleaner and
more flexible code.