python - Is it possible to use attributes of the final estimator of a pipeline object in scikit learn? -


i have created pipeline object uses countvectorizer , multinomialnb. multinomialnb instances have attributes named intercept_. if try access attribute using pipeline object getting error 'pipeline' object has no attribute 'intercept_'. wondering if there way access attributes of final estimator class in pipeline instance. thank in advance.

yes, using either steps or named_steps attributes, see question: getting model attributes scikit-learn pipeline


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -