Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run example/supervised/evolino/superimposed_sine.py error #232

Open
jt387 opened this issue Dec 7, 2017 · 0 comments
Open

run example/supervised/evolino/superimposed_sine.py error #232

jt387 opened this issue Dec 7, 2017 · 0 comments

Comments

@jt387
Copy link

jt387 commented Dec 7, 2017

Hi everyone! I run the example/supervised/evolino/superimposed_sine.py, but get the error below:

=== Learning to extrapolate 5 superimposed sine waves ===

creating training data
creating test data
creating EvolinoNetwork
creating EvolinoTrainer

====== NEXT RUN ======

=== TRAINING
Traceback (most recent call last):
File "superimposed_sine.py", line 89, in
trainer.trainEpochs( 1 )
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/supervised/trainers/trainer.py", line 37, in trainEpochs
self.train(*args, **kwargs)
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/supervised/trainers/evolino.py", line 130, in train
filter.apply(self._population)
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/supervised/evolino/filter.py", line 115, in apply
fitness = self._evaluateNet(net, dataset, self.wtRatio)
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/supervised/evolino/filter.py", line 57, in _evaluateNet
sequence = dataset.getSequence(i)[1]
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/datasets/sequential.py", line 55, in getSequence
return [self._getSequenceField(index, l) for l in self.link]
File "/usr/local/UCS4/python/lib/python2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/datasets/sequential.py", line 44, in _getSequenceField
return self.getField(field)[ravel(self.getField('sequence_index'))[index]:]
TypeError: slice indices must be integers or None or have an index method

How to fix it? Any reply will be appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant