pglm.lua works
fixes earlystopper minimize=true  max_error bug
lmfactory.lua