Skip to content

Conversation

@dmitrimaxwellsymbolica
Copy link

I think dist variable should have length of d_num + d_nom because the heom distance function have loop of both d_num and d_nom, previously loop through d_num only will produce error when d_nom length is larger than d_num which resulted in index out of bound. My fix is not pretty, but it works on housing dataset from issues 10.

@nickkunz
Copy link
Owner

Is this tested on any other open data set that you could share? I'd like to address this problem and merge your PR after verifying the fix. Thanks!


## create list to store distances
dist = [None] * d_num
dist = [None] * (d_num + d_nom)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants