Generalization Bounds for Data-Driven Numerical Linear Algebra