Commit 52d25f1
Weighted & batched EnsemblePosterior Ax support (facebook#4201)
Summary:
Adds more predict support for `EnsemblePosterior`, and makes it more coherent with the predict support that is already in place for `GaussianMixturePosterior` by using the newly added (previous diff) `mixture` attributes for `EnsemblePosterior`.
In the case where an `EnsemblePosterior` has batch dimensions in addition to the ensemble dimension, we compute the mean and variance over both batch and ensemble dimensions, instead of just the latter. Moreover, this allows us to properly account for non-uniform weights across batch and ensemble dimensions, which is needed for sampling-based benchmarking in ensembled Fully Bayesian models.
Removed tests that involved previous mixture moment calculations, as these are now in BoTorch.
Pull Request resolved: facebook#4201
Reviewed By: saitcakmak
Differential Revision: D80972578
fbshipit-source-id: 179799158979078958b9e9ba958d6ef58d9968731 parent 8d3c1c9 commit 52d25f1
2 files changed
Lines changed: 11 additions & 81 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
740 | 739 | | |
741 | 740 | | |
742 | | - | |
| 741 | + | |
743 | 742 | | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 743 | + | |
| 744 | + | |
749 | 745 | | |
750 | 746 | | |
751 | 747 | | |
752 | 748 | | |
753 | 749 | | |
754 | | - | |
| 750 | + | |
755 | 751 | | |
756 | 752 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
| 753 | + | |
761 | 754 | | |
762 | 755 | | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
| 756 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
549 | 543 | | |
550 | 544 | | |
551 | 545 | | |
| |||
0 commit comments