Integral Equations For Machine Learning Problems