ITADN

Add option to change covariance matrix type for GMM class

#50Pull Requestdominik-strutz 创建于 2024-04-03已合并
D
dominik-strutzcommented
This PR adds changes to the `zuko.flows.mixture.GMM` class, which allow the user to change the type of the covariance matrix used for each of the Gaussian components of the mixture. The options added are - `covariance_type`, which allows to change the type of the covariance matrices - `tied` a switch which allows to control if covariance matrices are tied between components - `cov_rank` the rank of the low-rank covariance matrix when `covariance_type` is 'lowrank' Since the construction of the shapes got quite long I moved this part in its own function. Below is an illustration of the effect these different choices have for a mixture of 3 two-dimensional Gaussians. ![image](https://github.com/probabilists/zuko/assets/42805470/ef887012-20ad-41a5-bcbf-01c8a19c83c7)
合并状态:已合并 合并于 2025-03-03 关闭于 2025-03-03 9 条评论