How to access estimator parameters in scikit-learn?

Hi everyone,

I am new to Scikit-learn, and I am trying to understand how estimators work in Scikit-learn. Specifically, I am interested in learning more about how to access the parameters of different estimators.

I have been working with the iris dataset, and I have created a decision tree classifier using Scikit-learn’s DecisionTreeClassifier estimator. Here’s the code I used:

Now I would like to know how I can access the parameters of this DecisionTreeClassifier estimator. Are there any common ways to do this for different types of estimators in Scikit-learn?

Any help or guidance would be greatly appreciated. Thank you!