-
Notifications
You must be signed in to change notification settings - Fork 11
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
reinstate plotting functionality #115
Conversation
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
==========================================
+ Coverage 46.80% 47.84% +1.04%
==========================================
Files 17 18 +1
Lines 1391 1417 +26
==========================================
+ Hits 651 678 +27
+ Misses 740 739 -1
Continue to review full report at Codecov.
|
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.
Nice, looks good, few comments inline.
I can add back some simple plots back to the docs now then.
|
||
|
||
|
||
function fromUAI(filename) |
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.
We don't need the factor graph compilation anymore? Or I guess will be adding it back later? Oh I guess since we don't have vtrees and SDDs right now in PCs.jl we cannot have these either.
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.
It depends on SDD compilation, which is in logic circuits. We can add it to LogicCircuits.jl one day and then allow conversion from Logic to Prob circuits.
src/input_distributions.jl
Outdated
@@ -78,6 +81,9 @@ num_categories(d::Categorical) = length(logps(d)) | |||
num_parameters(n::Categorical, independent) = | |||
num_categories(n) - (independent ? 1 : 0) | |||
|
|||
latex(d::Categorical) = | |||
"Categorical("*join(params(d), ", ")*")" |
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.
Maybe can shorten this by doing "Cat" and rounding the params into like 2-3 digits.
Also since we are printing sum nodes params not in log domain I guess we can do same here and take exp.
No description provided.