should minimizer, errorfn, learn_rate also have default values in the function definition?