Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Updated Code

Sign in to follow this  


Updated the C# Perceptron (Neural Net) class to include writing and reading of weights to a textfile. The example now includes:
1. Creates the Perceptron Class and Randomizes Weights
2. Trains the Perceptron with two data points.
3. Stores the weights to a file.
4. Reads the weights from a file.
5. Tests the mapping for the two data points we trained it on to see if it gives the correct output.
The ErrorOutputs.txt file gives the errors during training for each trial and the output of the test mappings (part 5)
The myweights.txt file give the number of input nodes and output nodes and the weights we trained the neural network.

Updated 7/7/05:
Made correction in Mapping method of Perceptron. (input index was not correct)
Added a few overloads for Training method args/parameters.

Here is where you can get it.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!