Skip to content

Jade-GG/LyNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LyNN

This is a very simple C# neural network thing I made. You can create networks as big as you want, and they can be saved to and loaded from disk.

Example

Setting up a network with a few layers, 4 inputs and 1 output, randomizing it, and training it with very basic data.

//Building the network and randomizing it
Network nw = Network.BuildNetwork(4, new int[]{10, 10, 10}, 1);
nw.RandomizeNetwork();

//Feeding it two training examples
nw.TrainNetwork(new float[] { 0.1526f, 0.1665f, 0.3283f, 0.3435f }, new float[]{ 0 });
nw.TrainNetwork(new float[] { 0.4294f, 0.1469f, 0.0442f, 0.1560f }, new float[]{ 1 });

//Applying the average nudges these two training examples gave
nw.ApplyTrainingChanges(1);

Releases

No releases published

Packages

No packages published

Languages