Using Contrastive Learning with Generative Similarity to Learn Spaces that Capture Human Inductive Biases