One question and one problem.
Question:
===========================================================================
--- a/src/search/landmarks/landmark_status_manager.cc Wed Nov 03 11:59:31 2010 +0200
+++ b/src/search/landmarks/landmark_status_manager.cc Wed Nov 03 13:04:16 2010 +0200
@@ -54,8 +54,8 @@
}
}
}
- cout << inserted << " initial landmarks, "
- << g_goal.size() << " goal landmarks" << endl;
+ //cout << inserted << " initial landmarks, "
+ // << g_goal.size() << " goal landmarks" << endl;
unused_alm.insert(
lm_graph.get_action_landmarks().begin(),
===========================================================================
Why is that commented out? Should it go away? Then it should be deleted, not
commented out.
Problem: indentation is messed up. Please fix. Examples:
===========================================================================
--- a/src/search/learning/PDB_state_space_sample.cc Wed Nov 03 11:59:31 2010 +0200
+++ b/src/search/learning/PDB_state_space_sample.cc Wed Nov 03 13:04:16 2010 +0200
@@ -15,7 +15,7 @@
PDBStateSpaceSample::PDBStateSpaceSample(int goal_depth, int probes = 10, int
size = 100)
: ProbeStateSpaceSample(goal_depth, probes, size) {
int table_size = (2 * goal_depth) + 1;
- double p = 0.2;
+ double p = 0.5;
prob_table = new double[table_size];
@@ -26,6 +26,7 @@
prob_table[table_size - 1] = 1.0;
uniform_sampling = true;
+ add_every_state = false;
}
PDBStateSpaceSample::~PDBStateSpaceSample() {
@@ -45,10 +46,17 @@
cout << "PDB-style state space sample" << endl;
int num_probes = 0;
while ((samp.size() < min_training_set_size) && (num_probes <
max_num_probes)) {
+ sample_t temp_sample;
+ temporary_samp = &temp_sample;
+
num_probes++;
- //cout << "Probe: " << num_probes << " - " << sample.size() << endl;
+
int depth = get_random_depth();
+ for (int j = 0; j < heuristics.size(); j++) {
+ heuristics[j]->reset();
+ }
send_probe(depth);
+ //cout << "Probe: " << num_probes << " - " << samp.size() << endl;
}
branching_factor = (double)generated / (double)expanded;
===========================================================================
|