Skip to content

Commit

Permalink
Add common numpy transforms to extra_namespace (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicapretto authored Nov 23, 2022
1 parent e05daf1 commit 678f648
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bambi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,13 @@ def censored(*args):

censored.__metadata__ = {"kind": "censored"}

extra_namespace = {"c": c, "censored": censored}
extra_namespace = {
"c": c,
"censored": censored,
"log": np.log,
"log2": np.log2,
"log10": np.log10,
"exp": np.exp,
"exp2": np.exp2,
"abs": np.abs,
}

0 comments on commit 678f648

Please sign in to comment.