2012/1/4 Mathias Verbeke <[email protected]>: > I just started working with Scikit Learn and I'm currently using the Nearest > Neighbors module. In the documentation is stated that it currently only > supports the Euclidean distance metric, and I was wondering if it would be > easy to extend it with other distance metrics? Since it uses the > scipy.sparse matrices as input, I was thinking about the distance metrics in > scipy.distance.spatial. Would that be possible, or were there certain > considerations to only allow for Euclidean distance?
Actually, the sparse matrices must be feature vectors, not distance matrices. The euclidean distance is computed between these vectors, pairwise. -- Lars Buitinck Scientific programmer, ILPS University of Amsterdam ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
