iOS 8 swift with Hebbian is one of learning rules of adjusting weight in neural-network.