masa-su / pixyz

A library for developing deep generative models in a more concise, intuitive and extendable way
https://pixyz.io
MIT License
487 stars 41 forks source link

support the case Normal(loc='y', scale='y',...) #132

Closed ktaaaki closed 3 years ago

ktaaaki commented 3 years ago

目的

DistributionBaseを継承する全てのDistributionで,同じ確率変数をパラメータとして指定するとエラーになるので修正しました.

内容

loc = 'y', scale='y'などの記述から初期化されるreplace_params_dictに1対多の関係をサポートさせました.