-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor pretty-printing and fix latex underscores #6533
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1116,7 +1116,7 @@ class _LKJCholeskyCovBaseRV(RandomVariable): | |
ndim_supp = 1 | ||
ndims_params = [0, 0, 1] | ||
dtype = "floatX" | ||
_print_name = ("_lkjcholeskycovbase", "\\operatorname{_lkjcholeskycovbase}") | ||
_print_name = ("_lkjcholeskycovbase", r"\operatorname{\_lkjcholeskycovbase}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the addition of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, thinking about this again... the answer is probably in the title of this PR and related to issue #6508 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep exactly! |
||
|
||
def make_node(self, rng, size, dtype, n, eta, D): | ||
n = at.as_tensor_variable(n) | ||
|
@@ -1164,7 +1164,7 @@ def rng_fn(self, rng, n, eta, D, size): | |
# be safely resized. Because of this, we add the thin SymbolicRandomVariable wrapper | ||
class _LKJCholeskyCovRV(SymbolicRandomVariable): | ||
default_output = 1 | ||
_print_name = ("_lkjcholeskycov", "\\operatorname{_lkjcholeskycov}") | ||
_print_name = ("_lkjcholeskycov", r"\operatorname{\_lkjcholeskycov}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above |
||
|
||
def update(self, node): | ||
return {node.inputs[0]: node.outputs[0]} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry - Refreshing on pep 257 I've realized triple quotes are probably preferred!