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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -