/Simple-Neural-Network

A neural network written in Python, consisting of a single neuron that uses back propagation to learn.

Primary LanguageJupyter NotebookMIT LicenseMIT

Simple Neural Network

A neural network written in Python, consisting of a single neuron that uses back propagation to learn XOR

Dependencies

  • numpy (optional. used just for convenience)

Usage

for Jupyter Notebook, run Simple Neural Network.ipynb with jupyter notebook viewer

for using in your project, include this in your project, import and use it as follows

    nn = SimpleNeuralNetwork(dimensions)
    nn.train(train_x, train_y, iterations)
    test_y = nn.predict(test_x)

Credits

thanks to Milo Spencer Harper for open sourcing code