i understand combinations, but not the lambda expression and reference to dm[i[0] i1] . um what is substituted for i or is there a better way to think it through?
Folgert Karsdorp
@fbkarsdorp
so, basically the combinations part will return tuples of all indexes in one of the triangles of dm. The lambda expression uses these indexes to query the distance matrix dm. So, a possible i could be (0, 1), the we query the distance matrix on dm[i[0]][i[1]] = dm[0][1].
I think i see. of the expressions (1,4)[0] and (1,4)1 they refer to 1 and 4 resp., and so, it simply retrieves the distance value for that tuple, and returns the tuples with the minimum.
certainly is elegant
Folgert Karsdorp
@fbkarsdorp
exactly!
Dan Strong
@strongdan
@fbkarsdorp Got stuck after installing Anaconda on a Windows PC. Where do I find the start-windows.bat. file?