-
Notifications
You must be signed in to change notification settings - Fork 16
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
Branin and Hartmann proxies #297
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…proxy must now be negative so as to then have positive rewards; base proxy implements a base map_to_standard_range which can be used to remap proxy values back to an original range
Yes that works, will be part of the base install.
Joseph (Mobile)
…On Wed, Mar 13, 2024 at 11:56 Alex ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
On pyproject.toml
<#297 (comment)>
:
@josephdviviano <https://github.com/josephdviviano> this PR adds two new
proxy classes that make use of a Python library that wasn't yet a
dependency, botorch <https://botorch.org/>. Is this the correct way of
adding it as a dependency? Anything else needs to be done? Thanks!
—
Reply to this email directly, view it on GitHub
<#297 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7TL2TDLJAXLLZNDWWE3Q3YYBZL7AVCNFSM6AAAAABEFVOZZWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSMZUGU4DSMZZHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
alexhernandezgarcia
changed the title
[WIP] Branin and Hartmann proxies
Branin and Hartmann proxies
Mar 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the Branin and Hartmann proxies, functions widely used in the optimisation and (multi-fidelity) active learning literature, including the Multi-Fidelity Active Learning with GFlowNets paper.
The Branin function is defined on the real plane and the Hartmann function on a 6D real hyper-plane. Therefore, these functions (proxies) can be used to train both grid (discrete) and cube (continuous) environments.
They rely on the botorch implementation. Therefore
botorch
has been added as a new dependency.Both proxies can be turned into multi-fidelity oracles via the parameter
fidelity
.This PR includes a bit of additional clean-up and refactoring:
func
from environment config files.higher_is_better
from proxy config files.proxy_factor
in the base environment, since it is assumed that proxy outputs will be negative and lower is better. If not, this can still be controlled with the beta parameter. In any case, this aspect should be revised in the future./gflownet/proxy/box
and similarly for the configuration files.