Skip to content

Revamp handling of base_samples - #1

Closed
Balandat wants to merge 1 commit into
facebook:masterfrom
Balandat:export-D14280371
Closed

Revamp handling of base_samples#1
Balandat wants to merge 1 commit into
facebook:masterfrom
Balandat:export-D14280371

Conversation

@Balandat

@Balandat Balandat commented Mar 2, 2019

Copy link
Copy Markdown
Contributor

Summary:

  • revamps usage of base_samples, so that we don't have to do the weird thing of passing tuples of tensors and ints around
  • simplifies batch_mode_transform
  • takes some steps in supporting arbitrary batch shapes (though not all)
  • cleans up documentation

Reviewed By: sdaulton

Differential Revision: D14280371

Summary:
- revamps usage of base_samples, so that we don't have to do the weird thing of passing tuples of tensors and ints around
- simplifies batch_mode_transform
- takes some steps in supporting arbitrary batch shapes (though not all)
- cleans up documentation

Reviewed By: sdaulton

Differential Revision: D14280371

fbshipit-source-id: f9dc7ebd5b1438ce508d8677b732082596bb7ee6
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 2, 2019
@Balandat

Balandat commented Mar 2, 2019

Copy link
Copy Markdown
Contributor Author

This was supposed to be exported to botorch, not AE.

@Balandat Balandat closed this Mar 2, 2019
@Balandat
Balandat deleted the export-D14280371 branch March 2, 2019 03:15
facebook-github-bot pushed a commit to meta-pytorch/botorch that referenced this pull request Mar 4, 2019
Summary:
Pull Request resolved: #12

Pull Request resolved: facebook/Ax#1

- revamps usage of base_samples, so that we don't have to do the weird thing of passing tuples of tensors and ints around
- simplifies batch_mode_transform
- takes some steps in supporting arbitrary batch shapes (though not all)
- cleans up documentation

Reviewed By: sdaulton

Differential Revision: D14280371

fbshipit-source-id: 470d637975b6e27e14c14f94133f41dcffd742b8
facebook-github-bot pushed a commit that referenced this pull request Mar 4, 2019
Summary:
Pull Request resolved: meta-pytorch/botorch#12

Pull Request resolved: #1

- revamps usage of base_samples, so that we don't have to do the weird thing of passing tuples of tensors and ints around
- simplifies batch_mode_transform
- takes some steps in supporting arbitrary batch shapes (though not all)
- cleans up documentation

Reviewed By: sdaulton

Differential Revision: D14280371

fbshipit-source-id: 470d637975b6e27e14c14f94133f41dcffd742b8
Balandat added a commit to meta-pytorch/botorch that referenced this pull request Apr 26, 2019
Summary:
Pull Request resolved: #12

Pull Request resolved: facebook/Ax#1

- revamps usage of base_samples, so that we don't have to do the weird thing of passing tuples of tensors and ints around
- simplifies batch_mode_transform
- takes some steps in supporting arbitrary batch shapes (though not all)
- cleans up documentation

Reviewed By: sdaulton

Differential Revision: D14280371

fbshipit-source-id: 470d637975b6e27e14c14f94133f41dcffd742b8
facebook-github-bot pushed a commit that referenced this pull request Nov 22, 2021
Summary:
Currently, it’s impossible to create an experiment with both regular Metrics/Data and MapMetrics/MapData. If you try, you’ll run into an error. This series of diffs aims to not only address this problem but also to improve general developer ergonomics through the creation of a new MapData class (MilesMapData). Over the next few diffs we will:
- [x] Create MilesMapData
- [ ] Replace usages of MapData with MilesMapData
- [ ] Reap MapData
- [ ] Rename MilesMapData to MapData

This diff specifically has created the MilesMapData class (which has nearly identical user facing function signatures to MapData for easy integration) and some associated tests.

The general ideas behind MilesMapData are as follows:
1. Data :> MilesMapData.
2. Data will be downcastable to in an ergonomic way, most often f: Data, MilesMapData -> MilesMapData (the combination of this and #1 will solve the mixed data experiment problem).
3. MilesMapData will be able to materialize a dataframe of the same shape as Data (this will allow us to use MilesMapData where Data is used just via polymorphism, without any messy glue code).

The flow for creating a so-called mixed data experiment would go somthing like this: A user makes an Experiment with a MilesMapData object. They fill the experiment with mixed data via MilesMapData.from_multiple_data(left, right) and regular data will have its missing map fields inferred automatically. The user does whatever analysis they want with the MilesMapData (early stopping, etc.). Finally, the user uses the MilesMapData as Data via MilesMapData.df (a property method that materializes a Data shaped dataframe) however they want (extract best points, plots, etc.).

NOTE: Please cmd-F "TODO" to see some specific inline design questions I would like feedback on.

Reviewed By: bernardbeckerman

Differential Revision: D32004210

fbshipit-source-id: f426c5d09b07943fb3920137224b5aa6a76db58a
ItsMrLin added a commit to ItsMrLin/Ax that referenced this pull request Jan 21, 2025
Summary:
We pass kwargs to ModelSpec.fit in order to pass state extracted when this ModelSpec was used last, back into the ModelSpec, in GenNode.fit (https://fburl.com/code/uic21yuw). 
Along with these, we pass any kwargs manually specified to GenNode.fit, but this behavior is unused in GenStrategy (https://fburl.com/code/20kpa363) and can thus be reaped. That was a remnant of how we used to pass the state from facebook#1, in GenStrategy and not in GenNode (https://www.internalfb.com/diff/D32003890?dst_version_fbid=499298561323086&transaction_fbid=623265442134398) and should be deprecated.


Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: saitcakmak

Differential Revision: D67803329
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants