Skip to content

fix ingest for umap 0.5 - #1601

Merged
Koncopd merged 3 commits into
masterfrom
ingest-fix
Feb 1, 2021
Merged

Koncopd merged 3 commits into
masterfrom
ingest-fix

Conversation

@Koncopd

@Koncopd Koncopd commented Jan 19, 2021

Copy link
Copy Markdown
Member

subj
#1509
rp_forest storage is still broken though.

@ivirshup

Copy link
Copy Markdown
Member

Would making pynndescent a requirement make the code here a bit more simple? I'm wondering if all the branches around umap versions and whether pynndescent is present could be removed.

@ivirshup ivirshup added this to the 1.7.0 milestone Jan 20, 2021
@Koncopd

Koncopd commented Jan 20, 2021

Copy link
Copy Markdown
Member Author

For umap 0.5 pynndescent is in requirements, so it is used here also. For backwards compatibility i left the code for the old versions. I think i will remove the old code sometime in the future and just use pynndescent and umap >= 0.5.

@ivirshup

Copy link
Copy Markdown
Member

rp_forest storage is still broken though.

Is this something you are planning on fixing in this pr?

Also, what's broken about it? I would have thought we'd have a failing test.

@Koncopd

Koncopd commented Jan 20, 2021

Copy link
Copy Markdown
Member Author

I am checking, it seems that the format for rp_forest changed significantly.

No, failing forest conversion won't cause any problems because it was deliberately coded to avoid problems. The code is in neighbors, and neighbors is critical functuionality and can work without rp_forest.

@ivirshup

Copy link
Copy Markdown
Member

I am checking, it seems that the format for rp_forest changed significantly

Can we validate the format? If so, can we just recalculate the forest if the format isn't what we expect?

Also, can you point me to the code where this is handled in ingest? I feel like something user visible should happen if there's malformed data in the object.

@ivirshup

Copy link
Copy Markdown
Member

Alright, I was more wondering how you were handling the forest right now, but I see that you're just calculating it. I suspect there will be a minimum version bound needed for the init_graph parameter.

Let me know when you think this is ready to merge.

@Koncopd

Koncopd commented Feb 1, 2021

Copy link
Copy Markdown
Member Author

@ivirshup i am merging this and will work on rp_forest later.

@Koncopd
Koncopd merged commit 73876fd into master Feb 1, 2021
@ivirshup

ivirshup commented Feb 2, 2021

Copy link
Copy Markdown
Member

@meeseeksdev backport to 1.7.x

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