Teaching machines to teach themselves