DataPacRat comments on Open Thread April 11 - April 17, 2016 - Less Wrong

3 Post author: Clarity 10 April 2016 09:01PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (145)

You are viewing a single comment's thread. Show more comments above.

Comment author: DataPacRat 11 April 2016 10:57:36PM 1 point [-]

Thank you kindly for your help so far. :)

I started entering the live city data, and everything was going fine. Had to tweak the weights a bit to avoid some initial problems... then I got to Washington DC, and nothing I try seems to get it to work again. http://pastebin.com/q1JhUpSp is what I've ended up with; if I comment out DC's lines, I get a plot, if I put it back in, python just errors out, no matter what I set the weight divisor to. Any thoughts?

Comment author: ZankerH 11 April 2016 11:25:08PM *  3 points [-]

Two things:

  • all other points have a negative x coordinate, and the x range passed to the tessellation algorithm is [-124, -71]. You probably forgot the minus sign for that point's x coordinate.

  • as mentioned above, the algorithm fails to converge because the weights are poorly scaled. For a better graphical representation, you will want to scale them to the range between one and one half of the nearest point distance, but to make it run, just increase the division constant.

Comment author: DataPacRat 11 April 2016 11:57:06PM 2 points [-]

You probably forgot the minus sign

<forehead slap>