Open khrudkova opened 2 months ago
Yes, you can simply add your hypothesis to a Prolog file, together with the test data and bk. Then you can execute the hypothesis against the positive and negative examples and count how many examples of each it entails.
An example of implementation to count TP / FN / TN / FP is available here: https://github.com/celinehocquette/numsynth-aaai23/blob/main/ilp-experiments/ilpexp/system/test.pl
Thank you for the answer, please, could you provide more information, on how to execute this process? Mainly:
Thank you.
Add to the same Prolog file the test data, bk, learned hypothesis, and code of this file. Then query
do_test(TP,FN,TN,FP).
Hello,
I would like to ask, whether it is possible to get hypothesis from train data and then test it on test data - therefore, the TP, TN, FP, FN scores would be evaluated on the test set, which would be different, from the train set. Alternatively, if it is possible to insert hypothesis and have it tested on selected dataset.
Thank you.