Our algorithm suggests that the main characteristics that impacted early allograft loss were serum creatinine levels at the hospital discharge, as well as the pre-transplant values such as body weight, age of patients, and their BKPyV infection. We propose that machine learning tools can be developed to effectively assist medical decision-making in kidney transplantation.