The Knowledge Gradient Algorithm for a General Class of Online Learning Problems | Synapse