代码之家  ›  专栏  ›  技术社区  ›  oneat

你能提供一个神经网络的代码示例,以及它如何在一些样本输入上工作吗?[关闭]

  •  1
  • oneat  · 技术社区  · 15 年前

    你能给我一个NN的样本吗?

    我的意思是像执行ORC,但更简单。

    你能用例子解释一下它是如何工作的吗?

    2 回复  |  直到 9 年前
        1
  •  2
  •   Waleed Al-Balooshi    15 年前

    查看此网站:

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

    除了使用它构建的扫雷程序外,它对神经网络还有很好的解释。原始代码在C++中,但有代码连接到VB.NET和Delphi的端口。

    同时查看主页

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

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

    希望这有帮助。

        2
  •  0
  •   George Mauer    15 年前

    我有一种感觉,这不是你真正要求的,但这里有一个简单的神经网络在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才会起火。