小编Zac*_*ler的帖子

seaborn:lmplot()得到了一个意想不到的关键字参数'figsize'

如何更改seaborn中我的lmplot的数字大小?

这是我目前的代码,但显然figsize不被接受.

sns.lmplot(x="x", y="y", hue="category", data=df,fit_reg=False,
       markers=["o", "x"], palette="Set1",figsize=(7,7));
Run Code Online (Sandbox Code Playgroud)

谢谢

python seaborn

14
推荐指数
3
解决办法
9934
查看次数

Sci-kit:使用GridSearchCV时,获取估算器混淆矩阵的最简单方法是什么?

在这个简化的例子中,我用GridSearchCV训练了一个学习者.我想在预测全集X时返回最佳学习者的混淆矩阵.

lr_pipeline = Pipeline([('clf', LogisticRegression())])
lr_parameters = {}

lr_gs = GridSearchCV(lr_pipeline, lr_parameters, n_jobs=-1)
lr_gs = lr_gs.fit(X,y)

print lr_gs.confusion_matrix # Would like to be able to do this
Run Code Online (Sandbox Code Playgroud)

谢谢

python scikit-learn

7
推荐指数
1
解决办法
2529
查看次数

标签 统计

python ×2

scikit-learn ×1

seaborn ×1