Learning Near-optimal Convex Combinations of Basis Models with Generalization Guarantees