microsoft / AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!
https://microsoft.github.io/AI-For-Beginners/
MIT License
33.3k stars 5.48k forks source link

Bug in Perceptron.ipynb #323

Open comi-zhang opened 1 month ago

comi-zhang commented 1 month ago

when I run the code in perceptron.ipynb,I meet the problem below,I didn't fix it yet: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (7, 2) + inhomogeneous part. Please help image

wlz196 commented 1 month ago

return snapshots instead of np.array(snapshots)