Learning and checking confidence regions for the hazard function of biomedical data