XOR neural network implementation in C++
Example project demonstrates neural network implementation in C++. CppNeuralNetwork project was inspired by this project. No additional library is needed.
Simple xor gate is implemented by using neural network in C++. After the training, the results should be as following:
Expected | Output |
---|---|
0.0000 | 0.0431 |
1.0000 | 0.9573 |
1.0000 | 0.9587 |
0.0000 | 0.0409 |
CMakeLists.txt
CMake building scriptsrc
contains source codesrc/library
contains libraries
mkdir build
cd build
cmake ..
make
cd build/src
./CppNeuralNetwork