Skip to content
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

Running into bug when using knn graph in Datalab Tabular tutorial #1042

Open
mturk24 opened this issue Mar 7, 2024 · 1 comment
Open

Running into bug when using knn graph in Datalab Tabular tutorial #1042

mturk24 opened this issue Mar 7, 2024 · 1 comment
Labels
bug Something isn't working help-wanted We need your help to add this, but it may be more challenging than a "good first issue"

Comments

@mturk24
Copy link
Contributor

mturk24 commented Mar 7, 2024

Running into the following error:

Error in non_iid: If a knn_graph is not provided, features must be provided to fit a new knn.
Failed to check for these issue types: [NonIIDIssueManager]

Screenshot 2024-03-07 at 10 47 37 AM

Screenshot shows error and this is the exact code being run from the tutorial

KNN = NearestNeighbors(metric='euclidean')
KNN.fit(X_processed.values)

knn_graph = KNN.kneighbors_graph(mode="distance")

data = {"X": X_processed.values, "y": labels}

lab = Datalab(data, label_name="y")
lab.find_issues(pred_probs=pred_probs, knn_graph=knn_graph)
@jwmueller jwmueller added bug Something isn't working low priority and removed needs triage labels Mar 7, 2024
@coding-famer
Copy link
Contributor

I'd like to work on this issue but I can't reproduce it. The tutorial works well on my machine and on the document website. And the error message for non_iid is

"If a knn_graph is not provided, either 'features' or 'pred_probs' must be provided to fit a new knn."

instead of features must be provided to fit a new knn.

Can you provide more details about reproducing this error?

@jwmueller jwmueller added the help-wanted We need your help to add this, but it may be more challenging than a "good first issue" label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help-wanted We need your help to add this, but it may be more challenging than a "good first issue"
Projects
None yet
Development

No branches or pull requests

4 participants