Local location of dataset and models contains absolute directory path and is prepended with "dataset_" and "model"
sgbaird opened this issue · 1 comments
sgbaird commented
Running on Windows.
# pip install olymp sqlalchemy matplotlib
# initalize the Olympus orchestrator
from olympus import Olympus, Database, Campaign
from time import time
from os import path
olymp = Olympus()
# we declare a local database to which we store our campaign results
database = Database()
DATASET = "photo_pce10"
NUM_REPETITIONS = 10
PLANNERS = ["Grid"]
elapsed_times = {"planner": [], "time": []}
for PLANNER in PLANNERS:
for repetition in range(NUM_REPETITIONS):
print(f"Algorithm: {PLANNER} [repetition {repetition+1}]")
start_time = time()
olymp.run(
planner=PLANNER, # run simulation with <PLANNER>,
dataset=DATASET, # on emulator trained on dataset <DATASET>;
campaign=Campaign(), # store results in a new campaign,
database=database, # but use the same database to store campaign;
num_iter=100, # run benchmark for num_iter iterations
)
elapsed_time = time() - start_time
elapsed_times["planner"].append(PLANNER)
elapsed_times["time"].append(elapsed_time)
[FATAL] Could not find dataset ` \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_photo_pce10`. Please choose from one of the available datasets: \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_alkox, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_benzylation, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_colors_bob, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_colors_n9, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_fullerenes, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_hplc, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_photo_pce10, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_photo_wf3, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_snar, \sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\datasets\dataset_suzuki.
Changing to the following (based on error message) worked for the dataset:
from os import path
...
path.join(
"\sterg",
"Miniconda3",
"envs",
"sdl-demo",
"lib",
"site-packages",
"olympus",
"datasets",
"dataset_photo_pce10",
)
...
But then I get the following error about the model:
[FATAL] Model "BayesNeuralNet" not available in Olympus. Please choose from one of the available models: Rs\sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\models\modelBayesNeuralNet, Rs\sterg\Miniconda3\envs\sdl-demo\lib\site-packages\olympus\models\modelNeuralNe
and it's not apparent what I need to change. What would you suggest?