Announcements

Sequence windows

As was briefly discussed in class and mentioned on the getting started page, you will need to split up your idea in subsequences in order to train RNNs. To do so, I just added a new transformer to Fuel that does this for you (should be merged soon, but you can check out the branch or copy-paste the code if you want to use it right now).

You can use it as follows:

from fuel.datasets.youtube_audio import YouTubeAudio
from fuel.transformers.sequences import Window

data = YouTubeAudio('XqaJ2Ol5cC4')
stream = data.get_example_stream()

sequence_size = 10
windows = Window(1, sequence_size, sequence_size, True, stream)
for source, target in windows.get_epoch_iterator():
    train(source, target)
Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s