Here is my code:
import neurolab as nl
import numpy as np
inputs = np.eye(8)
inp = inputs[0]
inp = inp.reshape(1,8)
inputs = np.delete(inputs , 5, 0)
net = nl.net.newff([[0, 1]] * 8, [3, 8], transf=[nl.trans.LogSig()] * 2)
error = net.train(inputs, inputs)
# inp is [1, 0, 0, 0, 0, 0, 0, 0]
out =net.sim(inp)--
Вы получили это сообщение, поскольку подписаны на одну из тем в группе "NeuroLab".
Чтобы отменить подписку на эту тему, перейдите по ссылке https://groups.google.com/d/topic/py-neurolab/TaRGTVtrEN4/unsubscribe.
Чтобы отменить подписку на эту группу и все ее темы, отправьте письмо на электронный адрес py-neurolab...@googlegroups.com.
Чтобы настроить другие параметры, перейдите по ссылке https://groups.google.com/d/optout.
train_rprop algorithm could give me best output.According to the problem, the input and the output is the same. So I just use the input as output to train the network.After I send the email. I tried other training algorithms and finds that backpropagation could output the result I want.Are you the owner of this project? I think some part of document has English syntax errors. How could I contribute to this project?
On Sun Nov 16 2014 at 11:53:02 PM Evgeny Zuev <zue...@gmail.com> wrote:
--I think your train samples is not correct. Add more dataWhat you want this?>>> train(inputs, inputs)
Вы получили это сообщение, поскольку подписаны на одну из тем в группе "NeuroLab".
Чтобы отменить подписку на эту тему, перейдите по ссылке https://groups.google.com/d/topic/py-neurolab/TaRGTVtrEN4/unsubscribe.
Чтобы отменить подписку на эту группу и все ее темы, отправьте письмо на электронный адрес py-neurolab+unsubscribe@googlegroups.com.
Вы получили это сообщение, поскольку подписаны на группу "NeuroLab".
Чтобы отменить подписку на эту группу и больше не получать от нее сообщения, отправьте письмо на электронный адрес py-neurolab...@googlegroups.com.
Чтобы отменить подписку на эту группу и все ее темы, отправьте письмо на электронный адрес py-neurolab...@googlegroups.com.