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
Post a Comment