You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\venv\Scripts\python.exe" "C:/Users/njose/Dropbox (Cambridge CARES)/Python/idmt_codeshare/pyflab_CURRENT/scratch.py"
C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\venv\lib\site-packages\torch_masked_init_.py:223: UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version of numpy is 0xe (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:68.)
example_input = torch.tensor([[-3, -2, -1], [0, 1, 2]])
Traceback (most recent call last):
File "C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\scratch.py", line 25, in
strategy = LHS(domain, random_state=np.random.RandomState(3))
NameError: name 'np' is not defined
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
Description
Was testing out the strategies module and ran into issues with numpy
What I Did
scratch.py
from summit import *
import numpy as np
domain = Domain()
domain += ContinuousVariable(name="x_0",
description="reaction temperature in celsius",
bounds=[50, 100])
domain += ContinuousVariable(name="x_1",
description="flow of reactant a in mL/min",
bounds=[0.1, 0.5])
domain += ContinuousVariable(name="y_0",
description="yield",
bounds=[0.1, 0.5],
is_objective=True,
maximize=True)
domain += ContinuousVariable(name="y_1",
description="cost",
bounds=[0.1, 0.5],
is_objective=True,
maximize=True)
strategy = LHS(domain, random_state=np.random.RandomState(3))
results = strategy.suggest_experiments(5)
strategy_lhs = LHS(domain, random_state=np.random.RandomState(3))
results = strategy.suggest_experiments(5)
print(results)
strategy_tsemo = TSEMO(domain)
experiments = strategy_tsemo.suggest_experiments(5)
print(experiments)
Error message:
"C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\venv\Scripts\python.exe" "C:/Users/njose/Dropbox (Cambridge CARES)/Python/idmt_codeshare/pyflab_CURRENT/scratch.py"
C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\venv\lib\site-packages\torch_masked_init_.py:223: UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version of numpy is 0xe (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:68.)
example_input = torch.tensor([[-3, -2, -1], [0, 1, 2]])
Traceback (most recent call last):
File "C:\Users\njose\Dropbox (Cambridge CARES)\Python\idmt_codeshare\pyflab_CURRENT\scratch.py", line 25, in
strategy = LHS(domain, random_state=np.random.RandomState(3))
NameError: name 'np' is not defined
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: