Neural network lightning