Operationally meaningful representations of physical systems in neural networks