Matt would still need to transform the data using the rest of the pipeline
first. There are multiple naming options for pipeline steps, but in this case
indexing is nice:```pipe[-1].kneighbors( pipe[:-1].transform(X))```The user
guide quote should probably be updated: not every method carries
Did you try:
pipeline.named_steps["the_string_name_for_knn"].kneighbours
?
pipeline should be replaced by the name you gave to your pipeline and the
string in named_steps is the name you have to the knn when setting the pipe.
Sole
Sent with Proton Mail secure email.
--- Original Message