課程
/后端開(kāi)發(fā)
/Python
/機(jī)器學(xué)習(xí)-實(shí)現(xiàn)簡(jiǎn)單神經(jīng)網(wǎng)絡(luò)
為什么總是顯示AttributeError: 'Perceptron' object has no attribute 'predict'
新手求大神賜教,感激不盡
2017-04-19
源自:機(jī)器學(xué)習(xí)-實(shí)現(xiàn)簡(jiǎn)單神經(jīng)網(wǎng)絡(luò) 3-5
正在回答
把net_input? predict函數(shù)拿到fit函數(shù)外部 與fit函數(shù)平級(jí)? 檢查下自己的函數(shù)名以及 __init__函數(shù)
原因是因?yàn)槟愕?def predict(self,X)縮進(jìn)有問(wèn)題
你是不是沒(méi)寫(xiě)predict函數(shù)
舉報(bào)
人工智能時(shí)代,你準(zhǔn)備好成為抓住機(jī)遇的那百分之二嗎。
1 回答'Perceptron' object has no attribute 'predict'
1 回答怎么沒(méi)fit就直接predict了?
4 回答NameError: global name 'predict' is not defined
1 回答'numpy' has no attribute 'predict'
2 回答'Perceptron' object has no attribute 'predict'
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-12-21
把net_input? predict函數(shù)拿到fit函數(shù)外部 與fit函數(shù)平級(jí)? 檢查下自己的函數(shù)名以及 __init__函數(shù)
2017-05-03
原因是因?yàn)槟愕?def predict(self,X)縮進(jìn)有問(wèn)題
2017-04-29
你是不是沒(méi)寫(xiě)predict函數(shù)