GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cchan/cppNN: No longer maintained - soon to be superseded by https://github.com/cchan/cppNN2. A C++ neural network implementation, with both genetic algorithm and backpropagation options.

BranchesTags
Open more actions menu

Latest commit

 

History

49 Commits
49 Commits

Folders and files

NameName
Last commit message
Last commit date
NeuralNetsArmadillo
NeuralNetsArmadillo
 
 
NeuralRobotics
NeuralRobotics
 
 
ObstacleCourse
ObstacleCourse
 
 
RoboSim
RoboSim
 
 
imgProc
imgProc
 
 
src
src
 
 
ultrasoundNavProcessing
ultrasoundNavProcessing
 
 
.gitignore
.gitignore
 
 
FullyConnectedNeural.cpp
FullyConnectedNeural.cpp
 
 
LayeredNeural_BackProp.cpp
LayeredNeural_BackProp.cpp
 
 
LayeredNeural_Genetic.cpp
LayeredNeural_Genetic.cpp
 
 
LayeredNeural_Genetic_Floats.cpp
LayeredNeural_Genetic_Floats.cpp
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
diagram.txt
diagram.txt
 
 
neural2.cpp
neural2.cpp
 
 
neural3.cpp
neural3.cpp
 
 
neural4.cpp
neural4.cpp
 
 
neuralnetwork.cpp
neuralnetwork.cpp
 
 
tanks.cpp
tanks.cpp
 
 

Repository files navigation

cppNN

This is a relatively old project that has been superseded by cppNN2. It's left here for fun.

Build instructions

Run make in the main directory. (You'll need C++11 support)

Old intro

Originally created for Lexington High School Science Fair 2015. A neural network library written from scratch, and associated attempts to train it.

I wrote a C++ deep neural network implementation from scratch using tanh layers. I used both the easier-to-understand but slower genetic algorithm and the harder-to- understand but faster backpropagation algorithm; the library is capable of both types of learning. In this process I learned a huge amount about the capabilities of C++ as a language, and of many subtle aspects of data structures, algorithms, and compilers, all in an effort to make the neural network as efficient as possible.

I trained this library first on the zero output vector, which it learned successfully, especially after I added simulated annealing (which, I like to brag, I came up with independently ;) ) and meta-annealing (I made that second one up; it seems effective but I'm not certain if it is).

I then trained it on a more complex situation, in which small "robots" roamed about a field, with a "predator" species and a "prey" species. The network did seem to learn some interesting behaviors to either dodge or catch the other species, and there even seemed to be a predator-prey cycle. However, there was far too much noise in the data to reliably say anything about the results. In conclusion, it's a reasonably well- written library, but I don't know how to train it properly.

More recently, I also used this project to learn how to write Makefiles, which are actually really cool. (Previously, this project had been using Visual C++ 2015.)

About

No longer maintained - soon to be superseded by https://github.com/cchan/cppNN2. A C++ neural network implementation, with both genetic algorithm and backpropagation options.

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.