Getting assertion error

98 views
Skip to first unread message

SP

unread,
Feb 10, 2015, 5:18:13 AM2/10/15
to py-ne...@googlegroups.com
Hello,

I am getting assertion error when i try to run the code attached here. As you can observe i modified this https://pythonhosted.org/neurolab/ex_newff.html . Please let me know where i am going wrong. Also how important is it to use a transfer function in neurolab?

Regards,  
Sampleann1.py
input.txt
output.txt

Evgeny Zuev

unread,
Feb 10, 2015, 7:34:24 AM2/10/15
to py-ne...@googlegroups.com
try: 
>>>error = net.train(inp, [tar], epochs=500, show=100, goal=0.02)

Tue Feb 10 2015 at 15:18:15, SP <phanib...@gmail.com>:
Hello,

I am getting assertion error when i try to run the code attached here. As you can observe i modified this https://pythonhosted.org/neurolab/ex_newff.html . Please let me know where i am going wrong. Also how important is it to use a transfer function in neurolab?

Regards,  

--
Вы получили это сообщение, поскольку подписаны на группу "NeuroLab".
Чтобы отменить подписку на эту группу и больше не получать от нее сообщения, отправьте письмо на электронный адрес py-neurolab...@googlegroups.com.
Чтобы настроить другие параметры, перейдите по ссылке https://groups.google.com/d/optout.

Santosh Phani Chintalapati

unread,
Feb 10, 2015, 7:39:27 AM2/10/15
to py-ne...@googlegroups.com
Get Assertion error again:

Traceback (most recent call last):
  File "C:\Users\SP\Desktop\Sampleann1.py", line 25, in <module>
    error = net.train(inp, [tar], epochs=500, show=100, goal=0.02)
  File "build\bdist.win32\egg\neurolab\core.py", line 165, in train
    return self.trainf(self, *args, **kwargs)
  File "build\bdist.win32\egg\neurolab\core.py", line 327, in __call__
    assert target.shape[1] == net.co
AssertionError

--
Вы получили это сообщение, поскольку подписаны на одну из тем в группе "NeuroLab".
Чтобы отменить подписку на эту тему, перейдите по ссылке https://groups.google.com/d/topic/py-neurolab/BmgCO3tl4eI/unsubscribe.
Чтобы отменить подписку на эту группу и все ее темы, отправьте письмо на электронный адрес py-neurolab...@googlegroups.com.

Evgeny Zuev

unread,
Feb 10, 2015, 11:05:16 AM2/10/15
to py-ne...@googlegroups.com
use, before train:
>>> tar.shape = 10, 1
Reply all
Reply to author
Forward
0 new messages