Learning by weakly-connected adaptive agents