Skip to content

mattravenhall/BasicNeuralNetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BasicNeuralNetwork

Just messing around with neural network fundamentals. Discussion of this project can be found here.

Running basicNN

  • Basic neural networks of specific sizes (two or three layer), mainly for learning how to build one.
>>> import basicNN as bNN
>>> n = bNN.TwoLayerNN()
>>> w = n.train()
>>> n.test([1,0,0],w)
0.9999370428352157

Running NeuralNetwork

  • Combined and extended version of basicNN, allowing for the creation of any specific size of basic neural network.
>>> import NeuralNetwork as NN
>>> n = NN.NeuralNetwork(size=[3,1], eons=10000)
>>> n.train(trainingInputs=np.array([[0,0,1],[0,1,1],[1,0,1],[1,1,1]]), trainingOutput=np.array([[0,0,1,1]]).T))
>>> n.test([1,0,0])
0.9999370428352157

Releases

No releases published

Packages

No packages published

Languages