2:- module(test, 3 [test/0,test_all/0]). 4:- use_module(library(plunit)). 5 6test:- 7 test_all. 8 9test_all:- 10 tests(A), 11 run_tests(A). 12 13tests([nations]). 14 15 16:- begin_tests(nations, []). 17:-ensure_loaded(library(examples_lift/nations)). 18:-use_module(library(cplint_test/cplint_test)). 19 20 21 22test(induce_nations_torch):- 23 set_lift(parameter_learning,em_torch), 24 set_lift(verbosity,0), 25 out(R), 26 induce_par_kg(R,R1), 27 writeln('Result:'), 28 writeln(R1). 29 30test(induce_nations):- 31 set_lift(parameter_learning,em_python), 32 set_lift(verbosity,0), 33 out(R), 34 induce_par_kg(R,R1), 35 writeln('Result:'), 36 writeln(R1). 37 38 39test(induce_nations_pos):- 40 set_lift(parameter_learning,em_python), 41 set_lift(verbosity,0), 42 set_lift(regularization,l2), 43 out(R), 44 induce_par_pos_kg(R,R1), 45 writeln('Result:'), 46 writeln(R1). 47 48:- end_tests(nations).