Self-directed information selection aids learning of logical rules