Re: [scikit-learn] NearestNeighbors without replacement

2018-04-01 Thread Jacob Vanderplas
On Sun, Apr 1, 2018 at 6:36 PM, Randy Ellis wrote: > Hello to the Scikit-learn community! > > I am doing case-control matching for an electronic health records study. > My question is, is it possible to run Sklearn's NearestNeighbors function > without replacement? As in, match the treated group

[scikit-learn] NearestNeighbors without replacement

2018-04-01 Thread Randy Ellis
Hello to the Scikit-learn community! I am doing case-control matching for an electronic health records study. My question is, is it possible to run Sklearn's NearestNeighbors function without replacement? As in, match the treated group to the untreated group without re-using any of the untreated g

Re: [scikit-learn] Error random_state parameter changed by estimator

2018-04-01 Thread Chris Aridas
Hey Manoj, I think that the following link can help you to solve your problem. http://scikit-learn.org/stable/developers/contributing.html#random-numbers Best, Chris On Sat, Mar 31, 2018 at 5:38 AM, Manoj Karthick wrote: > I am working on adding a new estimator to the scikit-learn library, b

Re: [scikit-learn] Get parameters of classes in a Pipeline within cross_validate

2018-04-01 Thread Chris Aridas
Hi Roberto, One option it could be to make a wrapper and serialize your pipeline in your wrapper's fit method. After the serialization you could load the pipeline anytime and inspect whatever you want. I have coded an example in the following gist. https://gist.github.com/chkoar/2993a6e3f6bae188