Skip to content

Instantly share code, notes, and snippets.

View xta0's full-sized avatar
🎯
Focusing

Tao Xu xta0

🎯
Focusing
  • Facebook
  • Bellevue, WA
View GitHub Profile
@xta0
xta0 / neural.c
Created November 5, 2019 19:35 — forked from hollance/neural.c
Playing with BNNS on macOS 10.12. The "hello world" of neural networks.
/*
The "hello world" of neural networks: a simple 3-layer feed-forward
network that implements an XOR logic gate.
The first layer is the input layer. It has two neurons a and b, which
are the two inputs to the XOR gate.
The middle layer is the hidden layer. This has two neurons h1, h2 that
will learn what it means to be an XOR gate.