Working version of LearnLOOParam