* first cut of loopy BP + L-BFGS training