u66u / neural-xor

Sample implementations of neural networks that solve the XOR problem from scratch in different languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample implementations of neural networks that solve the XOR problem from scratch (math libraries only)

Compile and run the C++ version:

g++ cpp_xor.cpp -o cpp_xor
./cpp_xor

Python version:

pip install numpy
python python_xor.py

C version:

g++ c_xor.c -o ./c_xor
./c_xor

Rust version:

cd rust_xor
cargo run --bin rust_xor

or for the Tahn function implementation:

cargo run --bin tahn

TODO:

  • Add rust version
  • Add javascript/typescript versions
  • Add C version

About

Sample implementations of neural networks that solve the XOR problem from scratch in different languages


Languages

Language:C++ 40.1%Language:Rust 27.0%Language:C 22.4%Language:Python 10.6%