Skip to content
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

Merged
merged 3 commits into from
Feb 22, 2022
Merged

reinstate plotting functionality #115

merged 3 commits into from
Feb 22, 2022

Conversation

guyvdbroeck
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Feb 22, 2022

Codecov Report

Merging #115 (e06f8da) into master (2add191) will increase coverage by 1.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/io/io.jl 91.66% <ø> (ø)
src/abstract_nodes.jl 89.58% <100.00%> (+2.62%) ⬆️
src/io/plot.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2add191...e06f8da. Read the comment docs.

Copy link
Contributor

@khosravipasha khosravipasha left a 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)
Copy link
Contributor

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.

Copy link
Member Author

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.

@@ -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), ", ")*")"
Copy link
Contributor

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.

@guyvdbroeck guyvdbroeck merged commit 2565442 into master Feb 22, 2022
@guyvdbroeck guyvdbroeck deleted the plot branch February 22, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants