SelfExplainML / PiML-Toolbox

PiML (Python Interpretable Machine Learning) toolbox for model development & diagnostics
https://selfexplainml.github.io/PiML-Toolbox
Apache License 2.0
912 stars 109 forks source link

Output coefficients for glm #22

Closed xloffree closed 1 year ago

xloffree commented 1 year ago

Hi,

Is there a way to output all of the estimated coefficients for a trained GLM model? I see there is a plot displaying the coefficients but is there a way to output them in a list or something that can be saved?

Thank you

ZebinYang commented 1 year ago

Hi @xloffree,

The coefficients of a GLM model can be extracted using

exp.get_model("GLM").estimator.coef_