如何更改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)
谢谢
在这个简化的例子中,我用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)
谢谢