lfSolver function

General Least Squares Loss Function