Abstract neural network structure