neurobiba

small collection of functions for neural networks.

very easy to use!

Installation:

pip install neurobiba

See examples

example_04

how to use

  1. create weights
weights = Weights([2, 1]) # 2 input neurons and 1 output
  1. create data, create answer, train
for i in range(10000): # train 10000 times
    a, b = random(), random() # a and b is a random numbers
    output = int(a > b) # if a > b then answer is 1, else 0
    weights.train([a, b], [output]) # train
  1. enjoy
result = weights.feed_forward([0.1, 0.3])[0] # result is close to 0

GitHub

https://github.com/displaceman/neurobiba