change method of penalty when learning and amount of adjusting weight