TangJiahui / 6.036_Machine_Learning

Repo for MIT 6.036 Machine Learning
MIT License
22 stars 22 forks source link

6.036_Machine_Learning #1

Open jekadwell opened 1 year ago

jekadwell commented 1 year ago

Tangjiahui, Thank you very much for posting this code for MIT 6.036. I am writing to point our an error in the xo_more theta and theta_0 in your post.

The perceptron actually requires 554 iterations of T to find the correct separator. Your code has a limit of 100. The theta and theta_0 you report is the last one generated, but not the correct separator. I have attached a graph of your separator (Screenshot xo_more).

Again, thank you very much for posting this code. I would be lost without it. You are a far, far better coder and Machine Learning student than me.

Screenshot xo_more Screenshot xo_more_2 Screenshot xo_more_3

TangJiahui commented 1 year ago

Good catch! Thank you for pointing this out @jekadwell ! I think I set limit of iterations and it comes to an early stop. Your visualization with separators make more sense. Thanks for looking into this and hope you have a great time playing around with my imperfect codes!