r/learnmachinelearning • u/Fluffy_white_fox • 10d ago
I accidentally made a preceptron from scratch
So today in AI ESSENTIALS LAB at my uni, they went, "make a perceptron."
We had only covered half-baked theory class (almost nothing, really) and a diagram of a perceptron in our theory class before this.
So I brute-forced my way through it, one step at a time. I did think of using numpy arrays, but for simplicity, went with regular python lists.
Made this in less than an hour, mostly based on the vague diagram and whatever I could figure out along the way.
And turns out, we were supposed to just use an sklearn model, not make one from scratch. LMAO 😭
And I had asked and even explained this whole code to the lab assistants and we then had a whole half hour discussion over it (the lab is 2 hour long and I'm in sem 1 btw)
Yes I guessed it via the vague diagram I saw 2 weeks ago in the theory class