Learning in structured connectionist networks