理解神经网络,可视化地。
Understanding Neural Network, Visually

原始链接: https://visualrambling.space/neural-network/

这个解释分解了神经网络的基础知识,灵感来自人类大脑,面向AI新手。神经网络接收输入数据(例如手写数字的图像),并通过互连的“神经元”层进行处理。 每个神经元包含一个规则——激活函数——它决定了神经元是否根据接收到的输入“激活”。这个输入是加权的,意味着每个连接都有一个影响神经元响应的值。神经元检测模式,随着数据在层间移动,这些模式变得越来越复杂。 最终,最后一层的激活模式代表网络的输出——在本例中,识别图像中的数字。一个有效网络的关键在于为每个神经元找到正确的权重和阈值,但*如何*实现这一点是一个更复杂的话题,留待未来探索。 这是一个由正在学习AI的人创建的简化可视化,旨在使概念易于理解,并欢迎反馈以供改进。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 可视化理解神经网络 (visualrambling.space) 10 分,来自 surprisetalk 1小时前 | 隐藏 | 过去 | 收藏 | 2 评论 4fterd4rk 20分钟前 | 下一个 [–] 很好的解释,但最后一个问题很简单。通过蛮力确定权重。只需运行大量数据,其中包含输入以及正确的输出(例如,手写文本到文本)。回复 brudgers 38分钟前 | 上一个 [–] 原始Show HN,https://news.ycombinator.com/item?id=44633725 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

tap/click the right side of the screen to go forward →

I’ve always been curious about how AI works.

But with the constant news and updates, I often feel overwhelmed trying to keep up with it all.

So I decided to go back to the basics and start learning from the beginning, with neural networks.

When I'm learning, I find it easier to understand how things work when I can visualize them in my mind.

So I made this visualization, and I'm sharing it now.

I'm just hoping it can also be useful for those of you who are curious about AI and want to learn from the basics.

But a quick disclaimer: I’m not an expert, and I might get things wrong here and there.

If you spot anything off, just let me know. I’d love to learn from you too!

So, what exactly is a neural network?

A neural network is inspired by the structure and functions of biological neural networks.

It works by taking some data as input and processing it through a network of neurons.

Inside each neuron, there’s a rule that decides whether it should be activated.

When that happens, it means the neuron found a pattern in the data that it has learned to recognize.

This process repeats as the data moves through the layers of the network.

The pattern of activation in the final layer represents the output of the task.

Let’s start with a simple use case for a neural network: recognizing a handwritten number.

In this case, the input is an image of a number, and we want the neural network to tell us what number it is.

The output is determined by which neurons in the last layer get activated.

Each one corresponds to a number, and the one with the highest activation tells us the network’s prediction.

To do this, first we need to turn the image into data that the neural network can understand.

In this example, the data will be the brightness value of each pixel in the image.

The neuron will receive a value depending on how bright or dark that part of the image is.

The darker an area (which means there is something written there), the more value a neuron will have.

Once this process is finished, the input neurons will now have values that resemble the input image.

These input values are then passed on to the next layer of neurons to process.

But here’s the key part: before being passed, each value is multiplied by a certain weight.

These weights will be varied for each connection.

It might be positive, negative, less than 1, or more than 1.

The receiving neuron will then sum up all the weighted values it gets.

Then comes the rule we mentioned earlier — usually called an activation function.

There are actually different types of activation functions, but let's use a simple rule for now:

If the total value is greater than a threshold, the neuron activates. Otherwise, it keeps inactive.

If the neuron gets activated, it means it recognized something in the image. Maybe a line, a curve, or a part of a number.

Now imagine we have to do these same operations for every neuron in the next layer.

Each neuron has its own weight and threshold value, so it will react differently to the same input image.

To put it differently, each neuron is looking for a different pattern in the image.

This process repeats layer by layer until we reach the final layer.

At each layer, the neurons process the patterns detected by the previous layer, building on them to recognize more complex patterns.

Until finally, in the last layer, the network has enough information to deduce what number is in the image.

So that’s basically how a neural network works in a nutshell.

It’s a series of simple math operations that process input data to produce an output.

With the right combination of weights and thresholds, the network can learn to map inputs to the right outputs.

In this case, it’s used to map an image of a handwritten number to the correct number.

I’ll stop here for now.

So far, we’ve looked at what a neural network is, how it reads input, performs calculations, and gives an output.

But we haven’t answered the important question:

How do we find the right weights and right thresholds, so that the correct neuron is activated?

That part’s a little tricky — I’m still trying to wrap my head around it and find a good way to visualize it.

So I won’t go into it just yet.

But for now, I hope this gives you a basic understanding of how neural networks work.

See you in the next one 👋

about this project →

visualrambling.space is a personal project by Damar, someone who loves to learn about different topics and rambling about them visually.

If you also love this kind of stuff, feel free to follow me. I'll try to post more content like this in the future!

__________________

https://twitter.com/damarberlari

_blank

联系我们 contact @ memedata.com