-learn
Cc: Sole Galli ; Gregory, Matthew
Subject: Re: [scikit-learn] methods available from last estimator in pipeline
[This email originated from outside of OSU. Use caution with links and
attachments.]
Matt would still need to transform the data using the rest of the pipeline
first. There
:00) To: Scikit-learn
mailing list Cc: Sole Galli
Subject: Re: [scikit-learn] methods available from
last estimator in pipeline 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 n
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
Hi all,
I have what is probably a silly question. I read this passage on [1]:
"""
The pipeline has all the methods that the last estimator in the pipeline has,
i.e. if the last estimator is a classifier, the Pipeline can be used as a
classifier. If the last estimator is a transformer, again, s