public string prediction(int agep, int jobp, int maritalp, int educationp, int debtp, int balancep, int housingp, int loanp) { Random rn = new Random(); DatoList predictions = new DatoList(); string name = predictionName.Text; int age = agep; int job = jobp; int marital = maritalp; int education = educationp; int debt = debtp; string clase = rn.Next(0, 1) + ""; int balance = balancep; int housing = housingp; int loan = loanp; Dato pt = new Dato(age + "", job + "", marital + "", education + "", debt + "", balance + "", housing + "", loan + "", ""); // string clas = this.tree.PrintLeaf(this.tree.Classify(pt, this.root))[1]+""; string respuesta; if (clase.Equals("1")) { respuesta = "yes"; } else { respuesta = "no"; } resultado.Text = respuesta; errorSelf.Text = "35 %"; subjectLabel.Text = "for" + " " + name + " " + "the prediction is"; return(respuesta); }