-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metricize uses various names for the same matrix #6
Comments
This paper provides an algorithm to metricize and keep the correction minimal in L2 sense: |
I'm really confused as to when and why this happens. For example, I've On 3/17/2016 9:12 AM, Bartek Siudeja wrote:
|
You do Later in the loop you have So in general In contrast: |
In
metricize
we haveolddist=dist
and the same withd_ij
. These do not create copies of the original matrix, just fresh reference (pointer) to the same numpy array.So the algorithm is changing entries of the matrix and uses the changed entries to compute other entries, in one while run. Also,
olddist==dist
is automatically true, so while never runs more than once.Adding
np.copy(dist)
should fix this, but will also slow down the algorithm significantly. And it is already very slow.The text was updated successfully, but these errors were encountered: