On data-driven optimization methods with uncertainty