What shapes feature representations? Exploring datasets, architectures, and training