lmjohns3 / theanets

Neural network toolkit for Python
http://theanets.rtfd.org
MIT License
328 stars 73 forks source link

Update xor-classfier.py #10

Closed talbaumel closed 10 years ago

talbaumel commented 10 years ago

Change some parameters and the last line (the last line didnt work on both my windows and mac computers in the original version)

result for my parameters: Input: [[ 0. 0.] [ 0. 1.] [ 1. 0.] [ 1. 1.]] XOR output [0 1 1 0] NN XOR predictions [[-0.01405924] [ 1.04721887] [ 1.040702 ] [ 0.00471972]]

result for previous parameters: Input: [[ 0. 0.] [ 0. 1.] [ 1. 0.] [ 1. 1.]] XOR output [0 1 1 0] NN XOR predictions [[-0.90128537] [-0.86696363] [-0.89465342] [-0.85937567]]