Skip to content

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

Notifications You must be signed in to change notification settings

u66u/neural-xor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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