Live data from Hacker News

The Smallest Brain You Can Build: A Perceptron in Python

ranpara.net

81–86 of 86 posts

Re: The Smallest Brain You Can Build: A Perceptron in Python

#81

I wish that the tutorial went just one more step. It presents a one dimensional perceptron. But most perceptrons are multi-input. Adapting the article's 1D perceptron to three-input, for example: import random learning_rate = 0.1 EPOCHS = 50 NUM_INPUTS = 3 weights = [random.uniform(-1, 1) for _ in range(NUM_INPUTS)] bias = random.uniform(-1, 1) data = [] for _ in range(100): inputs = [random.uniform(-1, 1) for _ in r…

My next article would be on multi dimensional problem statements.

Re: The Smallest Brain You Can Build: A Perceptron in Python

#83
post #76

Shameless plug of my own interactive version of this (ai assisted, but probably not slop) https://sourceobscure.com/perceptron/

Hey, I am sorry if you felt that way, I watched https://www.youtube.com/watch?v=l-9ALe3U-Fg and got inspiration, I found your content to be similar to that video as well. I don't understand these concepts as deeply as you can, but I have tried to make it simple and toy like. I have to say, you have really good content, if I use any of your resources in my future blogs, surely I will give acknowledgement to you or any other creator!

Re: The Smallest Brain You Can Build: A Perceptron in Python

#84
post #43

I can build a smaller brain. f(x) = 0.

This brain is interesting. Basically you get a no for everything you ask, right?

You get whatever you assign 0 to. You can combine it with other simple building blocks like f(x) = ~x to do large calculations to answer more complicated questions.

Re: The Smallest Brain You Can Build: A Perceptron in Python

#85
post #60

Earlier quoted context omitted.

The first AI winter was largely triggered by Minsky in a book he published in 1969, which mathematically proved that single-layer perceptrons couldn't solve non-linear problems. Favorite quote: "Our intuitive judgment is that the extension [to multilayer systems] is sterile." Yet we had the computational power to run backpropagation in the 1960s and small Transformers in the 1970s (I'm the author of both): https://gi…

I wonder had we invented transformer architecture back in the 70's or 80's, if the pace of hardware innovation would have naturally slowed AI progression, and given humans decades to slowly adapt, rather than the current tidal wave (that seems to grow in size daily) bearing down on us.

This is a fascinating discussion, thank you both.

I'll add this to my casual mental list of "Technologies that could have been developed generations earlier but through random chance, simply weren't."

Re: The Smallest Brain You Can Build: A Perceptron in Python

#86
post #3

If you want to learn the fundamentals of ML I recommend a book, such as Deep Learning: Foundations and Concepts by Chris Bishop. If you insist on staying online, one option is https://course.fast.ai/ If you don't know ML I don't think you're going to learn much through ad hoc demos.

Even 'The Welch Labs Illustrated Guide to AI' is pretty good: https://www.welchlabs.com/store/illustrated-guide-to-ai
Post reply on HN