I have used a couple of computers to run the same script and now have several result_files.pkl.
results1 = gp_minimize(func=fitness,
dimensions=dimensions,
acq_func='gp_hedge',
n_calls=11,
x0=default_parameters)
I will like to merge them all together to analyze all the results together. Is this possible. I tried to use a dictionary to append them:
all_results = {}
for i in range(8):
to_add = 'results'+str(i+1)
all_results.update(to_add)
But receive the following error message:
---------------------------------------------------------------------------
ValueError
Traceback (most recent call last) <ipython-input-33-fb7bb81cb72b> in <module>
3 to_add = 'results'+str(i+1)
4 print('adding: ',to_add)
----> 5 all_results.update(to_add)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Any ideas on how to merge them?
Thanks