Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 6: contraction
- xc = centroid + self.beta * (points[-1] - centroid)
- score_c = fn(*list(xc))
- print "C Score", score_c
- if score_c < results[-1]: # result[-1]/points[-1] en kotu noktaydi
- # eger gittigimiz yer en kotu noktadan bile kotuyse geri gelme vakti
- points[-1] = xc
- print "Contraction sonrasi noktalar", points
- continue
- print "Son sonuclar",results
- return points[0] # dongu bittiginde en iyi noktayi dondur
Add Comment
Please, Sign In to add comment