Update weight_learner.py