Guest User

Untitled

a guest
Jan 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # 6: contraction
  2. xc = centroid + self.beta * (points[-1] - centroid)
  3. score_c = fn(*list(xc))
  4. print "C Score", score_c
  5. if score_c < results[-1]: # result[-1]/points[-1] en kotu noktaydi
  6. # eger gittigimiz yer en kotu noktadan bile kotuyse geri gelme vakti
  7. points[-1] = xc
  8. print "Contraction sonrasi noktalar", points
  9. continue
  10.  
  11. print "Son sonuclar",results
  12. return points[0] # dongu bittiginde en iyi noktayi dondur
Add Comment
Please, Sign In to add comment