Skip to content

Commit

Permalink
Further path setting adjustments for colab envirnment
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriWeiss committed Oct 14, 2023
1 parent 6c46c2e commit 8dc77c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions up_ac/Smac_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def solve(config, metric, engine,

return feedback

path = os.getcwd().rsplit('up-ac', 1)[0]
path = os.getcwd().rsplit('up_ac', 1)[0]
if path[-1] != "/":
path += "/"
path += 'up-ac/up_ac/utils'
path += 'up_ac/utils'

self.feedback_path = path

Expand Down Expand Up @@ -220,10 +220,10 @@ def optimize(self, feedback_function=None, gray_box=False):
"""
if feedback_function is not None:
# Import feedback function, since dask cannot pickle local objects
path = os.getcwd().rsplit('up-ac', 1)[0]
path = os.getcwd().rsplit('up_ac', 1)[0]
if path[-1] != "/":
path += "/"
path += 'up-ac/up_ac/utils'
path += 'up_ac/utils'
sys.path.append(r"{}".format(path))
from load_smac_feedback import get_feedback

Expand Down
Binary file modified up_ac/utils/feedback.pkl
Binary file not shown.

0 comments on commit 8dc77c0

Please sign in to comment.