Imported from https://github.com/matejklemen/deep-rf