Support ExperimentData in MetadataToFloat & MapKeyToFloat transforms #3934
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.
Summary:
Supports transforming
ExperimentDatawithMetadataToFloat&MapKeyToFloattransforms. The transform constructor is also updated to support extracting the observations for the relevant parameters fromexperiment_data.For
MapKeyToFloat, the actual transform is no-op, since we have the map keys inobservation_dataand we can simply extract them from there inAdapter.Background: As part of the larger refactor, we will be using
ExperimentDatain place oflist[Observation]within theAdapter.ExperimentData. Theobservationsinput to the constructors may be deprecated once the use cases are updated.Adapterwill be represented withExperimentDataand will be transformed usingtransform_experiment_data.Adapterand other methods, theObservation / ObservationFeatures / ObservationDataobjects will remain. To support these, we will retain the existing transform methods that service these objects.ExperimentDatais not planned to be used as an output of user facing methods, we do not need to untransform it. We are not planning to implementuntransform_experiment_data.Reviewed By: ltiao
Differential Revision: D76627256