Learning closures