Weakly supervised temporal model for prediction of breast cancer distant recurrence