Weighted training

Using the new method, examples are each given an individual probability
of being chosen for training. Modifying alpha may also help if the
distribution isn't smooth enough for smaller training runs.