Adding custom experiments #104
-
Hi everyone! Is there a way to add custom experiment results that were never recommended during the campaign? For example, let's say that in the n-th iteration, BayBE proposed the following set of experiments:
These experiments were performed and the results are ready to be added to the campaign. However, based on the chemical intuition of a chemist, one more experiment (e.g. DMAc, KOAc, BrettPhos, 120, 0.153) was performed. This additional experiment was never recommended before, but all the conditions were included in the searchspace at the start. Would there be a way to add this measurement during the course of the campaign, even though it was never recommended? The solution that I see is to initiate a separate campaign from which one would extract a dataframe containing all the possible combinations with
Is there maybe a more elegant way to achieve this? Also, bearing in mind your code, do you see any issues with such an approach, will it somehow impede with further recommendations? I also use a similar approach when I want to initiate a new campaign and add the previous measurements to it (with a new objective, for example). Some more efficient way to achieve this would be highly appreciated. Cheers and thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @ustojiljkoff , the solution is even simpler. As long as your additional point (or several points) are part of the searchspace, you can simply add them via my_custom_data = pd.DataFrame.from_records([
{"Solvent": "DMAc",
"Base": "KOAc",
"Ligand": "BrettPhos",
"Temperature": 120,
"Concentration": 0.153,
"Yield": 42.0}
])
my_campaign.add_measurements(my_custom_data) In fact you can do this any time, even before you trigger your first recommendation. On another note: you can also get all possible combinations in case you have a purely discrete searchspace via accessing |
Beta Was this translation helpful? Give feedback.
-
closing as answered |
Beta Was this translation helpful? Give feedback.
Hi @ustojiljkoff ,
the solution is even simpler.
As long as your additional point (or several points) are part of the searchspace, you can simply add them via
add_measurements
, no need for index matching, column sorting or any matching, baybe takes care of that.Eg:
In fact you can do this any time, even before you trigger your first recommendation.
On another note: you can also get all possible combinations in case you have a purely discrete sear…