Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Interpolation NN #9

Closed
ainglot opened this issue Jan 28, 2017 · 1 comment
Closed

Interpolation NN #9

ainglot opened this issue Jan 28, 2017 · 1 comment

Comments

@ainglot
Copy link

ainglot commented Jan 28, 2017

Hello,
I have spatial data (points in Cartesian x, y, z.). I need to designate new value “z” using algorithm Natural Neighbour. Should I use PySparNN or different library? I ask because I haven’t been able to install annoy in win7.

@spencebeecher
Copy link
Contributor

spencebeecher commented Jan 28, 2017

Great question! While you definitely can use pysparnn - I would recommend that you use one of the methods in scikit-learn. http://scikit-learn.org/stable/modules/classes.html#module-sklearn.neighbors

KD-Tree or Ball Tree should do very well for you. Those should be easy to install.

PySparNN works very well in large dimensions where the number of positive entries per record is small. Like a text doccument - there are many possible words (dimensions) but where the number of positive entries per record is small (0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,1,1).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants