Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume order and length is the same between observed and predic…
…ted features Summary: Combining diffs D68274239 & D68294872: 1 - **D68274239 - [analysis] Don't assume order is the same in observed and predicted features** This is causing only 3 of 14 arms to show on an experiment. We're still assuming that within an observation the order of the metric names matches the order of the corresponding data. 2 - **D68294872 - [analysis] Don't assume observed and predicted metrics are the same length** Comment from [here](https://www.internalfb.com/diff/D68274239?dst_version_fbid=9435339503152040&transaction_fbid=1415387593232440): In N6432597 I encounter a `StopIteration` error when rebased on D68274239. I believe this is because `predicted.metric_names` is quite a bit longer than `observed.data.metric_names` and so there's a chance that ``` predicted_i = next( i for i in range(len(observed.data.metric_names)) if predicted.metric_names[i] == metric_name ) ``` never finds the metric it needs and throws the `StopIteration` error. Differential Revision: D68336952
- Loading branch information