func verifyWeightsModified(neuron, neuronCopy *ng.Neuron) bool { foundModifiedWeight := false // make sure the weights have been modified for at least // one of the inbound connections originalInboundMap := neuron.InboundUUIDMap() copyInboundMap := neuronCopy.InboundUUIDMap() for uuid, connection := range originalInboundMap { connectionCopy := copyInboundMap[uuid] for i, weight := range connection.Weights { weightCopy := connectionCopy.Weights[i] if weight != weightCopy { foundModifiedWeight = true break } } } return foundModifiedWeight }