Moved learn_period_map and active_learn_period from smo to learn_period