Merge branch 'generator' into 'master'

Use generators instead of list to concatenate the loaded training data

See merge request !9
15 jobs for master in 18 minutes and 47 seconds (queued for 5 seconds)