Jupyter notebook with Graphical Models
pyagrum.lib.notebook aims to facilitate the use of pyAgrum with jupyter notebook (or lab).
Visualization of graphical models
Important
For many graphical representations functions, the parameter size is directly transferred to graphviz. Hence, Its format is a string containing an int. However if size ends in an exclamation point “!” (such as size="4!"), then size is taken to be the desired minimum size. In this case, if both dimensions of the drawing are less than size, the drawing is scaled up uniformly until at least one dimension equals its dimension in size.
show a Bayesian network |
|
get a HTML string for a Bayesian network |
|
show an influence diagram as a graph |
|
get a HTML string for an influence diagram as a graph |
|
show a Markov random field |
|
get an HTML string for a Markov random field |
|
show a credal network |
|
get a HTML string for a credal network |
|
show pydot graph for an inference in a notebook |
|
get a HTML string for an inference in a notebook |
|
Show a junction tree of a Bayesian network |
|
get a HTML string for a junction tree (more specifically a join tree) |
Visualization of Tensors
Show a mono-dim Tensor (a marginal) |
|
shortcut for getProba(pyagrum.getPosterior(bn,evs,target)) |
|
shortcut for showProba(pyagrum.getPosterior(bn,evs,target)) |
|
return a HTML string of a |
|
show a |
Visualization of graphs
get an HTML representation of a dot string |
|
show a dot string as a graph |
|
get an HTML representation of a pydot graph |
|
show a pydot graph in a notebook |
Visualization of approximation algorithm
Show an animated version of an approximation algorithm. |
Helpers
Display the collection of dependance and versions |
|
display side by side args as HMTL fragment (using string, _repr_html_() or str()) |