Is there a better method than making a new rule to change variable order for maplist?
问题 I have written a program that defines a relation between a 'full' data table a set of sets of column headers (features), an aggregate function and the aggregate table. An example query : ?- data(D), fulltable_aggfunction_sets_aggtable(D,mean,[[a,b,c],[d,e,f]],AggTable), print_data(D),print_data(AggTable). [a,b,c,d,e,f,g,class] [1,1,1,1,1,1,1,0] [2,3,4,5,4,2,1,0] [3,1,3,4,6,7,8,1] [1,2,3,6,1,1,2,1] [feature(1,mean,[a,b,c]),feature(2,mean,[d,e,f])] [1,1] [3,3.6666666666666665] [2