Fix accidental switch from property to attribute in learner.py