sustainable-processes / summit

Optimising chemical reactions using machine learning
https://gosummit.readthedocs.io/en/latest/
MIT License
118 stars 24 forks source link

MTBO #241

Closed konkouz closed 1 year ago

konkouz commented 1 year ago

Description

I am trying to run MTBO, using a domain with two objectives. I am running the exact same code snippet as the one in the documentation website with the only difference being my domain has two objectives, and keep getting the following error:

"RuntimeError: The size of tensor a (2) must match the size of tensor b (16) at non-singleton dimension 1"

Can MTBO be used for this ? If yes could you please give me an example where that is used ?

Many thanks

marcosfelt commented 1 year ago

MTBO only works with single objective problems. We should definitely have a clearer error for that.

You can use the MultitoSingleObjective transform to convert multi-objective problems to single objective problems: https://gosummit.readthedocs.io/en/latest/transforms.html#id8