Fredholm Learning Framework