'Perceptron' object has no attribute 'predict'
net_input()和predict()在fit()里面會(huì)報(bào)錯(cuò):'Perceptron' object has no attribute 'predict',但是把這兩個(gè)函數(shù)放在fit()同級(jí)也會(huì)報(bào)錯(cuò):numpy.core._exceptions.UFuncTypeError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('<U11'), dtype('<U11')) -> dtype('<U11')
2019-09-25
predict函數(shù)和fit函數(shù)對(duì)齊就可以了。剛剛才發(fā)現(xiàn)的。