Add mask to waldboost training