distython
distython copied to clipboard
HVDM failing with NearestNeighbors
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!
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!
Hi @KacperKubara any news about this issue? :) Thanks a lot for your work!