[Scikit-learn-general] Hiring: Director of Machine Learning Core

2016-01-13 Thread Thomas, Adam (NIH/NIMH) [E]
Title 42 Staff Scientist / Director Machine Learning Core National Institute of Mental Health, National Institutes of Health Department of Health and Human Services, Bethesda, MD The National Institute of Mental Health (NIMH), a major research component of the National Institutes of Health (NIH),

Re: [Scikit-learn-general] k-NN user defined distance

2016-01-13 Thread Sebastian Raschka
I guess I got it now! This behavior (see below) is indeed a bit strange: from sklearn.neighbors import NearestNeighbors import numpy as np X = np.array([[1.0, 0.0, 1.0, 1.0], [0.0, 0.0, 1.0, 0.0], [1.0, 1.0, 1.0, 1.0]]) def tan(x, y): print(y) return 1 nbrs = NearestNeighbors(n_neighbor

Re: [Scikit-learn-general] Use of safe functions such as safe_sqr

2016-01-13 Thread Joel Nothman
safe_sqr applies when its operand may be a sparse matrix. In theory this could be true of coef_, but I don't think this is tested as often as it might be. But, in general, you should not take what is done in any particular piece of code to be indicative of best practice. There are often multiple w

[Scikit-learn-general] Use of safe functions such as safe_sqr

2016-01-13 Thread WENDLINGER Antoine
Hi everyone, I'm working on issue 2121 , and have trouble understanding when to use safe methods like safe_sqr. What I would want to do here is use np.linalg.norm on the coeff array when it is of dimension 2, but it s