Beispiel #1
0
def adjust_b (prototype, pattern, beta) :
	prototype_ = (1.0 - beta) * prototype + beta * vectors.minimum (prototype, pattern)
	prototype_ /= vectors.magnitude (prototype_)
	return prototype_
Beispiel #2
0
	def adjust (self, prototype, pattern, learning) :
		prototype_ = (1.0 - learning) * prototype + learning * vectors.minimum (prototype, pattern)
		prototype_ /= vectors.magnitude (prototype_)
		return prototype_