closure over (models, dataset) on models.f