Add learning of global alpha weight.

Learning of alpha can be done by class (best alpha for each class) or globally.