Neural networks as teachers