distython icon indicating copy to clipboard operation
distython copied to clipboard

HVDM failing with NearestNeighbors

Open panwarnaveen9 opened this issue 4 years ago • 2 comments

When I am trying HVDM with NearestNeighbors, I am getting following error but on other hand HEOM working fine.

second question is, should I include label or class column index into categorical_ix or not ?

distance_function = HVDM(data, class_index, categorical_ix)
nbrs = NearestNeighbors(n_neighbors=15, algorithm='ball_tree', metric=distance_function.hvdm).fit(data)
dis_value, indices = nbrs.kneighbors(data)

I am keep on getting this error..

Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!
Division by zero is not allowed!

panwarnaveen9 avatar Jun 17 '20 16:06 panwarnaveen9

Hi @panwarnaveen9 , apologies for a very late response. I somehow forgot that issue and just seen it now again.

HVDM seems to have few bugs that were addressed by the users. If you can, please use HEOM instead. I will be addressing this issues after I come back from holidays!

KacperKubara avatar Aug 03 '20 10:08 KacperKubara

Hi @KacperKubara any news about this issue? :) Thanks a lot for your work!

FabioCamerota avatar Nov 26 '22 17:11 FabioCamerota