small collection of functions for neural networks.
very easy to use!
pip install neurobiba
how to use
- create weights
weights = Weights([2, 1]) # 2 input neurons and 1 output
- 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
result = weights.feed_forward([0.1, 0.3]) # result is close to 0