pymc-devs/pymc

Introduce `pm.config` or `rcParams` for global & local config settings

クローズ

#4,657 opened on 2021/04/21

 (8 件のコメント) (0 件のリアクション) (0 人の担当者)Python (1,902 件のフォーク)batch import
enhancementsfeature requesthelp wanted

Repository metrics

Stars
 (7,926 個のスター)
PR merge metrics
 (平均マージ 11d) (30d で 7 merged PRs)

説明

Let me begin with saying that global variables are evil and nobody should be using them.

For things like #4372 it would be really useful to have a place where to make global config changes. Matplotlib does it and ArviZ too. Aesara also has a quite powerful config implementation that I refactored quite a bit a few months back. Or maybe we don't even need/want a place for global configuration settings?

Anyways it would be great to discuss and figure out what we want!

Update 2022-03-30 + ToDo

We have a general consensus that we want to do this. (I'm updating the title+labels in a second.)

Whoever wants to work on this should

  1. Read this thread
  2. Specifically investigate the options here
  3. Decide which route to go for
  4. Open a PR

コントリビューターガイド