您能否提供神经网络的代码示例以及它如何处理某些示例输入?

发布于 2024-08-20 12:43:12 字数 76 浏览 3 评论 0原文

你能给一个 NN 的样本吗?

我的意思是类似实施的 ORC,但更简单。

您能否通过示例解释它是如何工作的?

Could you give a sample of NN ?

I mean something like implemented ORC but easier.

And could you explain how does it work with examples.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

橘寄 2024-08-27 12:43:12

查看此网站:

http://www.ai-junkie.com/ann /evolved/nnt1.html

除了使用神经网络构建的扫雷程序之外,它还对神经网络进行了精彩的解释。原始代码是用 C++ 编写的,但有指向 VB.Net 和 Delphi 的代码移植的链接。

另请查看主页

http://www.ai-junkie.com/

寻找优秀的关于遗传算法和自组织映射的文章 - 这篇文章可以在“神经网络”按钮下找到。

希望这有帮助。

Check out this site:

http://www.ai-junkie.com/ann/evolved/nnt1.html

It has an excellent explanation of Neural Networks in addition to a minesweeper program that is built using it. The original code is in C++, but there are links to ports of the code to VB.Net and Delphi.

Also check out the main page

http://www.ai-junkie.com/

to find excellent articles on genetic algorithms and Self Organizing Maps - this one is found under the Neural Network button.

Hope this helps.

枫林﹌晚霞¤ 2024-08-27 12:43:12

我有一种感觉,这不是您真正要问的,但这是一个 C# 中的简单神经网络:

public class NeuralNode {
  double _threshold;
  double _signalReceived;
  public NeuralNode(double threshold) {
    _threshold = threshold;
    Reset();
  }
  public void Reset() { _signalReceived = 0; }
  public event Action<double> Fires = delegate {};
  public void Signal(double strength) {    
    if((_signalReceived += strength) >= _threshold)
      Fires(.5);
  }
}

var n1 = new NerualNode(1);
var n2 = new NerualNode(1);
var n3 = new NerualNode(1);
n1.Fires += n3.Signal
n2.Fires += n3.Signal

n1 和 n2 输入到 n3 中。仅当 n1 和 n2 触发时,n3 才会触发。

I have a feeling this is not what you're actually asking but here is a simpile neural net in C#:

public class NeuralNode {
  double _threshold;
  double _signalReceived;
  public NeuralNode(double threshold) {
    _threshold = threshold;
    Reset();
  }
  public void Reset() { _signalReceived = 0; }
  public event Action<double> Fires = delegate {};
  public void Signal(double strength) {    
    if((_signalReceived += strength) >= _threshold)
      Fires(.5);
  }
}

var n1 = new NerualNode(1);
var n2 = new NerualNode(1);
var n3 = new NerualNode(1);
n1.Fires += n3.Signal
n2.Fires += n3.Signal

n1 and n2 feed into n3. n3 will only Fire if n1 and n2 fire.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文