Learning algorithms and statistical inference do not in any way supersede or invalidate the scientific method, they are products of the scientific method.
in this case, the development of inference is certainly a consequence of the development of the scientific method. but the validity of the latter is a mathematical consequence of the validity of the former. bayesian inference is more fundamental.