/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`.
warnings.warn(
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/torch/jit/_script.py:1491: FutureWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`.
warnings.warn(
benchmark = Branin30()def strategy_factory(domain: Domain): data_model = SoboStrategy( domain=domain, acquisition_function=qLogEI(), surrogate_specs=BotorchSurrogates( surrogates=[ FullyBayesianSingleTaskGPSurrogate( inputs=benchmark.domain.inputs, outputs=benchmark.domain.outputs, model_type="saas",# the following hyperparams do not need to be provided warmup_steps=WARMUP_STEPS, num_samples=NUM_SAMPLES, thinning=THINNING, ), ], ), )return strategies.map(data_model)random_results = run( Branin30(), strategy_factory=strategy_factory, n_iterations=N_ITERATIONS, metric=best, initial_sampler=sample, n_candidates_per_proposal=5, n_runs=1, n_procs=1,)
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/bofire/utils/torch_tools.py:51: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /__w/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:213.)
return torch.from_numpy(np.ascontiguousarray(df.to_numpy())).to(**tkwargs)
0%| | 0/1 [00:00<?, ?it/s]Run 0: 0%| | 0/1 [00:16<?, ?it/s]Run 0: 0%| | 0/1 [00:16<?, ?it/s, Current Best:=12.619]Run 0: 100%|██████████| 1/1 [00:16<00:00, 16.43s/it, Current Best:=12.619]Run 0: 100%|██████████| 1/1 [00:16<00:00, 16.43s/it, Current Best:=12.619]