Re: [scikit-learn] methods available from last estimator in pipeline

2022-09-26 Thread Gregory, Matthew
-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

Re: [scikit-learn] methods available from last estimator in pipeline

2022-09-24 Thread bmreiniger via scikit-learn
: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

Re: [scikit-learn] methods available from last estimator in pipeline

2022-09-24 Thread Sole Galli via scikit-learn
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

[scikit-learn] methods available from last estimator in pipeline

2022-09-23 Thread Gregory, Matthew
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