farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

_preprocess_function error #222

Closed SuperYm closed 6 years ago

SuperYm commented 6 years ago

import seq2seq from seq2seq.models import SimpleSeq2Seq

model = SimpleSeq2Seq(input_dim=5, hidden_dim=10, output_length=8, output_dim=8) model.compile(loss='mse', optimizer='rmsprop')

File "/usr/local/lib/python2.7/dist-packages/recurrentshop/engine.py", line 659, in preprocess_input if self._preprocess_function is None: AttributeError: 'RecurrentSequential' object has no attribute '_preprocess_function'. how can i slove this?

walmsley commented 6 years ago

This seems to be a duplicate of #221

walmsley commented 6 years ago

temporary workaround: install old version of recurrentshop: pip install git+https://github.com/datalogai/recurrentshop.git@f5a1d126dd579c1eefe7c7caaa4ccd8867ee09d4

SuperYm commented 6 years ago

the current master-version has this problem,use branch version and problem sloved.