Optimal weights of deep neural networks are determined by the wedge product of training samples, revealing a novel perspective on network inner workings.