Leveraging prior knowledge and structure for data-efficient machine learning