Hello, I'm wondering if sklearn provides a means of terminating pipelines with a NearestNeighbors search.
For example, my workflow is DictVectorizer -> TfidfTransformer -> NearestNeighbors. I'd like to capture this in an sklearn Pipeline. Unfortunately, Pipeline does not expose a kneighbors() method that would run all intermediate transforms and then return the result of NearestNeighbors.kneighbors(). I went through Pipeline's source and noticed its decision_function(), predict() etc. all capture this functionality with different terminating operation names. Maybe there is some way to specify the terminating operation method name rather than relying on these Pipeline methods? Thank you, Ryan
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn