Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local location of dataset and models contains absolute directory path and is prepended with "dataset_" and "model" #22

Closed
sgbaird opened this issue Nov 13, 2022 · 1 comment

Comments

@sgbaird
Copy link
Contributor

sgbaird commented Nov 13, 2022

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?

@sgbaird sgbaird changed the title Local location of dataset contains absolute directory path and is prepended with "dataset_" Local location of dataset and models contains absolute directory path and is prepended with "dataset_" and "model" Nov 13, 2022
@sgbaird
Copy link
Contributor Author

sgbaird commented Nov 13, 2022

My bad - duplicate of #12

@sgbaird sgbaird closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant