/* Loan data set 2/3 - 1/3 split */ /* training set */ example(1, approve, [emp=yes, buy=comp, sex=f, married=no]). example(2, reject, [emp=no, buy=comp, sex=f, married=yes]). example(3, approve, [emp=yes, buy=comp, sex=m, married=no]). example(4, approve, [emp=yes, buy=car, sex=f, married=yes]). example(6, approve, [emp=yes, buy=comp, sex=f, married=yes]). example(7, approve, [emp=yes, buy=comp, sex=f, married=no]). example(8, approve, [emp=yes, buy=comp, sex=m, married=no]). example(11, reject, [emp=no, buy=comp, sex=m, married=yes]). /* test set */ test(5, reject, [emp=yes, buy=car, sex=f, married=no]). test(9, approve, [emp=yes, buy=comp, sex=m, married=yes]). test(10, approve, [emp=yes, buy=comp, sex=m, married=yes]). test(12, reject, [emp=no, buy=car, sex=f, married=yes]).