Compositionality and functorial invariants in #MachineLearning - ORA - Oxford University #Research Archive