Learning in a black box