亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

classifier報錯

---------------------------------------------------------------------------
NameError???Traceback?(most?recent?call?last)
<ipython-input-27-09489cf34698>?in?<module>()
---->?
1???????plot_decision_regions(X,?y,?resolution=0.02)
<ipython-input-26-4a04ed7daaaa>?in?plot_decision_regions(X,?y,?resolution)?????
11????np.arange(x2_min,?x2_max,?resolution))?????
12????--->?
13????z?=?classifier.predict(np.array([xx1.ravel(),?xx2.ravel()]).T)?????
14????print(xx1.ravel())?
15????print(xx2.ravel())NameError:?name?'classifier'?is?not?defined


正在回答

1 回答

你看下你的classifier在函數plot_decision_regions(X,?y,?resolution=0.02)沒有定義吧,肯定報錯。?

?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

classifier報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號