Refactor the benchmarks

This commit is contained in:
tacgomes
2013-01-09 15:25:14 +00:00
parent 7fabfcf4c9
commit 7f452d2397
36 changed files with 125 additions and 152 deletions

View File

@@ -33,5 +33,5 @@ function run_all_graphs
}
prepare_new_run
run_all_graphs "bp(shedule=seq_fixed) " seq_fixed
run_all_graphs "bp(bp_msg_shedule=seq_fixed) " seq_fixed

View File

@@ -32,5 +32,5 @@ function run_all_graphs
}
prepare_new_run
run_all_graphs "cbp(shedule=seq_fixed) " seq_fixed
run_all_graphs "cbp(bp_msg_shedule=seq_fixed) " seq_fixed

View File

@@ -23,7 +23,7 @@ main :-
generate_people(S, N, Counting) :-
Counting > N, !.
generate_people(S, N, Counting) :-
format(S, 'people(p~w).~n', [Counting]),
format(S, 'person(p~w).~n', [Counting]),
Counting1 is Counting + 1,
generate_people(S, N, Counting1).
@@ -31,9 +31,9 @@ generate_people(S, N, Counting) :-
generate_attrs(S, N, Counting) :-
Counting > N, !.
generate_attrs(S, N, Counting) :-
%format(S, 'people(p~w).~n', [Counting]),
%format(S, 'person(p~w).~n', [Counting]),
format(S, 'markov attends(P)::[t,f], attr~w::[t,f]', [Counting]),
format(S, '; [0.7, 0.3, 0.3, 0.3] ; [people(P)].~n',[]),
format(S, '; [0.7, 0.3, 0.3, 0.3] ; [person(P)].~n',[]),
Counting1 is Counting + 1,
generate_attrs(S, N, Counting1).

View File

@@ -32,5 +32,5 @@ function run_all_graphs
}
prepare_new_run
run_all_graphs "hve(elim_heuristic=min_neighbors) " min_neighbors
run_all_graphs "hve(hve_elim_heuristic=min_neighbors) " min_neighbors

View File

@@ -32,5 +32,5 @@ function run_all_graphs
}
prepare_new_run
run_all_graphs "lbp(shedule=seq_fixed) " seq_fixed
run_all_graphs "lbp(bp_msg_shedule=seq_fixed) " seq_fixed

View File

@@ -1,6 +1,6 @@
#!/bin/bash
NETWORK="'../../examples/workshop_attrs'"
NETWORK="'../../examples/workshop_attrs.pfl'"
SHORTNAME="wa"
QUERY="series(X)"