learn_line function

Learn paramter