Пример #1
0
# print match,len(inps)

# print num_hidden,weight_interval,pop_size,gen_limit,'ret = 1/(1+np.exp((-0.001*x)))'
=======
num_input = 3
num_hidden = 10
num_output = 2

# inps = loader.load('paru.xlsx')
# inps = loader.stringifyVar(inps,loader.normalizeVar(loader.getVar(inps)))
inps = loader.loadDat('titanic.dat')
# print inps

weights = ann.decodeWeights(de.de((num_output*num_hidden)+(num_hidden*num_input),2000,100,3,0.5,0.5,500))
# # print weights
# # print inps[0]
=======
>>>>>>> d269c08158bae5c6f1fda7bcf264d16d9045bd4b
match = 0
for i in range(len(inps)):
	if(ann.correct(inps[i],weights)):
		match += 1
print match,len(inps)
<<<<<<< HEAD
print num_hidden,2000,100,'ret = 1/(1+np.exp((-0.001*x)))'
>>>>>>> 92409f0a6a8d1fb5d46884e413072921bed7315f
=======

print num_hidden,weight_interval,pop_size,gen_limit,'ret = 1/(1+np.exp((-0.001*x)))'
>>>>>>> d269c08158bae5c6f1fda7bcf264d16d9045bd4b