![](/img/trans.png)
[英]Dash/Plotly: How can I plot two columns on the y-axis with the same x axis?
[英]How can I labeled the X axis and Y axis in yellowbrick plot? The code is I used is show below
如何在 yellowbrick plot 中標記 X 軸和 Y 軸? 我使用的代碼如下所示。
from yellowbrick.regressor import PredictionError
Visualizer = PredictionError(LL_dt)
Visualizer.fit(X_train,y_train)
Visualizer.score(X_test,y_test)
Visualizer.poof()
我嘗試添加
Visualizer.ax.set_xlabel("Measured")
Visualizer.ax.set_ylabel("Predicted")
但沒有用。
不要使用“Visualizer.poof()”。 在得分后立即添加您的 xlabel 和 ylabel 代碼。
Visualizer = PredictionError(LL_dt)
Visualizer.fit(X_train,y_train)
Visualizer.score(X_test,y_test)
Visualizer.ax.set_xlabel("Measured")
Visualizer.ax.set_ylabel("Predicted")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.