Figure 3: Algorithm for obtaining high-accuracy predictions.