-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gp output scaler #309
gp output scaler #309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Simon,
I think I have an idea, all data models in which we added the scaler show the following inheritance:
`class SingleTaskGPSurrogate(BotorchSurrogate, TrainableSurrogate):``
What do you think about creating a new data model TrainableBotorchSurrogate
, add the scaler stuff incl. the validator there and inherit from there?
There is also the possibility to reuse validators, maybe you can have a look there, in pydantic2 it should be also easier to reuse.
Best,
Johannes
Hi Johannes. That is a possible idea about would be suitable for now I think. I'm not sure about how pydantic2 works though and how it changes things... For now I'll make your suggested change and commit it when i get the chance |
Hi @jduerholt, I've made the suggested change by adding a new In addition, the random forest data model was also modified because it originally inherits from |
Thx, I will have a look over the course of the week! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Many thanks!
Added output scaler option for GP's
There is repeated code for the Pydantic validator so we probably need to think about a better way to do this in the future.