Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Learning-and-Intelligent-Systems/…
Browse files Browse the repository at this point in the history
…predicators into fix-geom-random
  • Loading branch information
tomsilver committed Dec 9, 2023
2 parents a470271 + 4cd25c8 commit 553e0ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion predicators/approaches/active_sampler_learning_approach.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def _create_explorer(self) -> BaseExplorer:
preds = self._get_current_predicates()
# Pursue the task goal during exploration periodically.
n = CFG.active_sampler_learning_explore_pursue_goal_interval
pursue_task_goal_first = (self._online_learning_cycle % n == 0)
pursue_task_goal_first = False
if self._online_learning_cycle < \
CFG.active_sampler_learning_init_cycles_to_pursue_goal or (
self._online_learning_cycle % n == 0):
pursue_task_goal_first = True
explorer = create_explorer(
CFG.explorer,
preds,
Expand Down
1 change: 1 addition & 0 deletions predicators/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ class GlobalSettings:
active_sampler_explorer_replan_frequency = 100
active_sampler_explorer_planning_progress_max_tasks = 10
active_sampler_explorer_planning_progress_max_replan_tasks = 5
active_sampler_learning_init_cycles_to_pursue_goal = 1

# grammar search invention parameters
grammar_search_grammar_includes_givens = True
Expand Down

0 comments on commit 553e0ed

Please sign in to comment.