Learning with structured data