KacperKubara / KacperKubara/distython

HVDM failing with NearestNeighbors

Open
#12 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
59
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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 ?

```python
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!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.