如何从 Seaborn lmplot() 中提取线性模型参数?

How to Extract Linear Model Parameters from Seaborn lmplot()?

有没有办法提取 seaborn.lmplot() 适合给定数据集的回归线参数?我查阅了文档,但未能发现任何在这方面对我有帮助的内容。

澄清一下,我指的不是 lmplot() 的函数参数,而是 m
b,共 y = mx + b

seaborn 使用 scipy stats linregress,因此您可以直接从那里获取它。

from scipy import stats
slope, intercept, r_value, p_value, std_err = stats.linregress(df.x,df.y)