A typo:
net._setParameters=(1.76464967 , 0.46764103 , 1.63394395 ,-0.95327762 , 1.19760151, -1.20449402, -1.34050959)
This line effectively replaces private _setParamethers
method with a tuple. Try if replacing this line with
net._setParameters([1.76464967 , 0.46764103 , 1.63394395 ,-0.95327762 , 1.19760151, -1.20449402, -1.34050959])
will help.
Second, don't see reasons for 1/Q
operation, so simple
>>> def netp(Q): return float(net.activate([Q]))
>>> for i in inp:
... print '{}\t{:.5f}'.format(i, netp(i))
yields
1.0 0.97634
0.5 0.46546
0.33333 0.29013
0.25 0.20762
0.2 0.16058
0.16666 0.13042
0.14285 0.10952
0.125 0.09421
0.11111 0.08254
0.1 0.07335