facebook / Ax

Adaptive Experimentation Platform
https://ax.dev
MIT License
2.36k stars 307 forks source link

AttributeError: 'dict' object has no attribute 'name' #1604

Closed SamirLamin closed 1 year ago

SamirLamin commented 1 year ago

Hello. I tried to implement AX for my multiobjective Bayesian optimization but I get this error can you help me to solve it Screenshot 2023-05-03 144243

mpolson64 commented 1 year ago

Hi Samir -- it looks like you're trying to set up an Ax Experiment, but using the Service API experiment creation syntax. Ax exposes a number of different API's to its users that are appropriate for different settings. The Service API is designed to allow the user to "ask" Ax to generate new parameterizations while scheduling their own trials; I suggest you check out this tutorial as a good starting point https://ax.dev/tutorials/gpei_hartmann_service.html . Let me know if this was helpful or if you have any follow up questions.

As an aside: I notice you're passing in a variable called "sense" to the Objective. Ax does not have a notion of sense or ObjectiveSense; are you using Ax directly or some other library that wraps around Ax?

lena-kashtelyan commented 1 year ago

@SamirLamin it seems to me that your question was answered, so I'm closing this issue. Please feel free to follow up on it, but if you do, please reopen the issue as we might not see your comment on a closed one.